Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Virtual Host not working, Is it Apache or Zone Edit? |
|
Author |
|
laowensjr
Joined: 14 Nov 2010 Posts: 2
|
Posted: Sun 14 Nov '10 10:42 Post subject: Virtual Host not working, Is it Apache or Zone Edit? |
|
|
I am not able to view my website using my domain name after setting up virtual hosts in Apache. I am able to view localhost.
I would greatly appreciate if someone could look over my httpd.conf setup pasted below and also my httpd-vhosts.conf file which is too pasted below.
Please feel free to point out any other things you may see as an obstacle.
If you do an nslookup you will see that my domain name’s nameservers are now pointed to zone edit’s nameservers.
Here we go:
+++++++++----BEGIN__HTTPD.CONF_----++++++++++++++++++++++++++++++++++++++
+++++++++++++++-----__END OF HTTPD.CONF____----+++++++++++++++++++++++++++
+++++++++++++++-----__BEGIN OF httpd-vhosts.conf ____----+++++++++++++++++++
++++++++++++++-----___END OF httpd-vhosts.conf___-------+++++++++++
I AM USING WAMP. I AM TRYING TO SETUP A WEBSERVER USING A DYNAMIC IP ADDRESS. I AM USING ZONEEDIT AND DYNDNS.
Hope Some Expert can help me, please!
Thanks
Admin note: removed the httpd.conf and vhost conf. See the forum rules .
Only post snippets where you added or removed. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 14 Nov '10 21:04 Post subject: |
|
|
Since the admin deleted you config, per the rules, I am just going to ask some questions.
If you go to http://www.yourdomain.com, do you get anthing? Does Apache answer with the wrong content or simply not answer at all?
If you get no answer at all, need to look into Firewall/s & router port forwarding.
I am going to forge ahead here assuming it is the prior. I am also assuming you are on port 80, if not, modify port #
In, httpd.conf find the current DocumentRoot, lets say for now it is c:/Apache22/htdocs
In httpd-vhosts.conf, as the first vhost add this
<VirtualHost _default_:80>
DocumentRoot "c:/Apache22/htdocs"
</VirtualHost>
restart Apache
test |
|
Back to top |
|
laowensjr
Joined: 14 Nov 2010 Posts: 2
|
Posted: Mon 15 Nov '10 10:18 Post subject: Apache not answering |
|
|
When I go to mydomain.com I get nothing. I get Internet explorer cannot display. I am listening on port 80 as I set it in. You mention firewall and router, maybe that's it. How do I set port forwarding in my linksys router in order to see if that will work?
Thanks in advance |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 15 Nov '10 18:38 Post subject: |
|
|
Yes, if you have not toughed your router this is probably why.
This is going off a clone of the BESFR41 which is rather old. The firmware is laid out the same. New Linksys's may be different these days but should be close.
Once logged into the router there are tabs on top of the screen. There is an "Advanced Settings" tab on far right right. Click that and then a second set of tabs will be showing instead. Second tab from left should be "Forwarding".
Most of the common ports people would open up if any are preset, find the one for 80, put the LAN IP of the server in there, check the enable checkbox & apply.
This should take care of you.
You can see my clone set to forward ports 80 & 443 in this
http://www.apachehaus.net/nr041.gif |
|
Back to top |
|
|
|
|
|
|