Server Fault is a question and answer site for system and network administrators. 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've installed XAMPP and it's working fine, localhost is showing everything it needs to (I have a wiki located in /mediawiki/ and a mini site of static webpages at /site/). Running Windows 7.

Before I tried to access my server from outside my network, I could access my wiki from within my network just fine by going to the machine's ip address ( But I want this wiki to be available from outside the network. I've spent ~10 hours now googling things and trying to get it to work.

My server hands out static ip addresses, so I don't need any DynDNS update software, but I have set up a DNS account for my (WAN) ip address (let's call it 75.x.x.x) from (because of free). I've tried editing the httpd.conf file a bunch of times trying to get it to work, setting ServerName, 75.x.x.x, the DNS domain I set, 0, *--nothing's worked, I can't connect ot the server from outside the network. To top it off, now I can't connect to the server from withing the network, even though I've restored the backup of the original httpd.conf (that I made just in case).

httpd.conf is set to listen on port 80, and all the forwarding is taken care of, both on the router and through Windows Firewall (both incoming and outgoing just in case). I tried it with another open port but still nothing. At this point, I don't know what I'm missing because I feel like I've tried everything I've been able to google up.

share|improve this question

closed as off-topic by Sven Feb 10 '15 at 12:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Sven
If this question can be reworded to fit the rules in the help center, please edit the question.

What error do client browsers give when attempting to connect? – Shane Madden Jun 27 '12 at 1:39

Ok, there are only a few points to get up you and running:

1) Make sure you have XAMPP up and running. From a browser on your machine you should be able to browse to your site using If that works then your apache is at least running and serving pages.

2) To keep the httpd.conf simple, the top part of the VirtualHost should look like:

<VirtualHost *:80>
    ServerName [your domain name]
    DocumentRoot /var/www/html [path to your root directory of your web site]

The *:80 tells it to listen on all IPs on port 80 ServerName tells it that it should apply this VirtualHost to any request for that domain name. NOTE: ServerAlias is common as otherwise it won't automatically figure out that www. is the same thing. DocumentRoot tells it where it gets the files from.

3) Ensure your network settings are correct - your static IP, gateway, etc. so that a
connection can actually be made to your machine.

4) From an external machine, ping your IP to ensure that you can at least reach it and there is no networking issue between the two computers. Then using the other machine open a browser and in the URL field type in http://[your external ip]. You may be an apache welcome page or a Forbidden page or various things depending on your settings, but it should at least give you something. That signifies that the external machines browser is making a valid connection to your webserver.

5) DNS is now the final step to resolve. You want to minimally link an A Record to your IP Address. Usually you handle this at the registrar that you bought your domain name from, unless you manually change the nameservers that you're using. If you use the registrars there's a place usually called 'DNS Management' or 'Zone File' or something similar. You want to route the tld (top-level-domain) to your machine's IP address. You should also add a CNAME Record for www that points to the tld. Example:        A    CNAME

That's pretty much the simplicity of it. Your milestones are A) Making sure that you can get apache working locally, then B) making sure your machine can be hit from across the internet or internal network and C) getting the DNS set up so they can use the domain instead of an IP.

share|improve this answer

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