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?


2 Answers 2


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.


  • I think the port suggestion will be my solution.
    – Icode4food
    Commented Oct 11, 2010 at 13:40
  • don't forget to upvote helpfull solutions and questions,
    – WalterJ89
    Commented Oct 11, 2010 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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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