Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to have others inside my local network access resources on my computer at outsideprojects. I am running Apache and have a virtual host configured so I can access it at outsideprojects.localhost but can't seem to be able to access it from the outside.

I have all firewalls disabled so I don't believe that this is the issue. I would expect that I should be able to access this at outsideprojects. but I cannot do that either.

What are the Apache configuration options to be able to accomplish this?

share|improve this question
After posting here I realized that his is probably a better question for serverfault. I have asked it there as well: serverfault.com/questions/189239/… – Icode4food Oct 9 '10 at 0:58
up vote 0 down vote accepted

Try doing that with a subdomain from something like http://www.dyndns.com/ opposed to using an ip address. I imagine that would work better with apache if you want to configure it that way. to access this from a remote host you would have to open up your firewall and also forward the port from your router.

I'm not very familure with apache's configuration but just with the dyndns.com subdomain I access a webserver I have running on my development machine from anywhere without too much trouble.

EDIT : now that I notice you want this for your local network ... why the subdomain? The ip address of your machine should be enough? if you want multiple sites just run it on different ports. so ,, that would be the easiest thing to do. OR another thing you can do is use the name of the computer, which acts as a host name over a local network. I have no idea if subdomains work with that.


share|improve this answer
I think the port suggestion will be my solution. – Icode4food Oct 11 '10 at 13:40
don't forget to upvote helpfull solutions and questions, – WalterJ89 Oct 11 '10 at 14:35

You cannot do that from outside network. But for local network you may: To do this only for the localhost: open /etc/hosts, you will see 1 line: localhost add another line: outsideprojects.

In /etc/httpd/conf/httpd.conf you can add this address as another host.

But be assured, this is "not possible" from outside network, because IP addresses can never contain subdomains!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.