Potential Issues w/ httpd-vhosts file
Posted by: OrionDartanyu (---.ph.ph.cox.net)
Date: June 10, 2007 09:57PM

I'm trying to set up my domain name I purchase and used zoneedit to tie it to my IP address, but it's not finding the site when I try to access it.

When I ping my domain, I get replies from my IP address and receive them all, but when I try to access it loads, and then loads some more, and finally gets the connection timed out error. So is it just not finding my files correctly through the httpd-vhosts config? This is what I have:

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
DocumentRoot C:/wamp/users/mydomain.com/public_html
ServerName www.mydomain.com
ServerAlias mydomain.com
ErrorLog C:/wamp/users/mydomain.com/logs/error.log
CustomLog C:/wamp/users/mydomain.com/logs/access.log common
</VirtualHost>

I've got my home.php file in the public_html folder.

I've rechecked everything and I can't seem to locate the issue, I also have port 80 forwarded on both my routers (VoIP and a WiFi router) but the strange thing is, if I disable port forwarding on my VoIP router, if I attempt to access my domain, it prompts me to sign into the router. But I do have TCP Port 80 being forwarded properly, so I can only assume it must be an issue with the routing of the folders, so where is it wrong?

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: CyberSpatium (71.237.217.---)
Date: June 11, 2007 12:21AM

read the virtual host section of my manual


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: OrionDartanyu (---.ph.ph.cox.net)
Date: June 11, 2007 01:43AM

exactly where I performed all my steps from :-/

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: CyberSpatium (71.237.217.---)
Date: June 11, 2007 06:43AM

read the virtual host section.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: OrionDartanyu (---.ph.ph.cox.net)
Date: June 11, 2007 07:17AM

Is there more to the virtual hosting guide then what I post below? Because I'm not sure what you're wanting me to read, if I've already read it, then after reading it through fully I went back to the top and followed it STEP by STEP (reason why I went with godaddy and zoneedit, because they were recommended in the guide), and once I noticed it didn't work rereading the section multiple times. Because please tell me where there is more located than this, because I would have happily read it, but for some reason I seem to not be able to find what I'm looking for... and yes, dnstools does show the site was propagated properly...

"Setting up Apache to use a Domain Name

Here is a tutorial on how to setup Apache 2.x to host a domain name with Virtual Host using Dynamic DNS. In order to do this, you will need a domain name. If you don’t have one, you can register on at www.godaddy.

....

I have noticed with GoDaddy, domain name propagation only takes a few minutes. To see if your domain name has fully propagated, use dnstools.com. Enter your domain name in the box. If your see your ZoneEdit NameServer’s listed in the whois report, your domain name has fully propagated. If not, you will need to wait a bit longer and try again."


So if there is more to this than I am finding, PLEASE show me where, but unfortunately, if there is more it's nicely hidden


Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: CyberSpatium (71.237.217.---)
Date: June 12, 2007 02:59AM

what errors are you getting?


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: OrionDartanyu (---.ph.ph.cox.net)
Date: June 12, 2007 04:21AM

Specific Error is: "The Connection has Timed Out" when i try to access my domain.

So a few troubleshooting steps I've performed: My first reaction is a firewall. Luckily on my webserver computer, I did a fresh install of XP and only installed 2 programs since the install; WAMP and McAfee... So I correctly opened port 80 for HTTP access, and when that failed I went in and completely deleted McAfee (since sometimes the rules set still protect if you only disable) So I FULLY removed McAfee firewall from my computer. I rebooted and disabled Windows Firewall, so at this point I have NO firewall on this computer (bad I know, but it was momentarily for troubleshooting purposes) so now with NO firewall on computer, it again comes back as Connection has Timed Out.

I've forwarded TCP port 80 on my wifi router as well as my VoIP router (I have both, before I configured my VoIP router, when i tried to access my domain it would take me to the UI for that router) so both routers had port 80 forwarded for my webserver, again still Connection Timed Out.

So that's why I believe the issue might be in the vhosts file, because it's reacting almost as if it's not finding any files to load. So is the file set up correct? I copied and pasted it from the manual, changing the domains only, so I'm pretty sure it's correct, but I'm not sure where else the issue would lay other then it not properly finding the files to load.

Basically, my goal is to eliminate Apache as the issue before I check with Go Daddy support or others. Just trying to narrow the error down to one specific location



Post Edited (06-12-07 04:56)

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: CyberSpatium (71.237.217.---)
Date: June 13, 2007 12:47AM

if apache detected any error in the virtual host config file, apache would not start. make sure you have enabled this setting in your httpd.conf file

find:
#Include conf/extra/httpd-vhosts.conf

remove the pound sign ( # ) at the begging to enable this setting. save the file and restart apache for the new setting to take effect.



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: OrionDartanyu (---.ph.ph.cox.net)
Date: June 13, 2007 04:39AM

Hrm... well that was already with the "#" removed, and still failed... So Apache wouldn't start if the files were incorrect? So since it's started, this means the issue must be else where then?

Well, atleast that's one thing out of the way, now I'll check with some other groups where the issue may lay... hopefully I can find the issue and get it resolved, hah.

But thanks for your support and your manuals, the big reason why I switched to WAMP was because it had a start up manual unlike so many other programs out there, so thanks for your time and support.

Edit: Upon reading on zoneedit's faq, i wonder if it's because my ISP blocked port 80,,, didn't realise it was against my TOS sad smiley So changing the port is just going into httpd.conf and under Listen ipaddress:80, just change 80 to what ever port, and then in the httpd.vhost change the *.80 to *.port number? So i wonder if just getting a commerical account with my isp would resolve it... but that seems like an awful lot just to set up a webserver even though I don't want to profit from it :-/ This is more headaches then I anticipated... oh well, now I'm more just rambling since I know it's not really an issue with WAMP... so no worries



Post Edited (06-13-07 09:30)

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: yfastud (---.cable.mindspring.com)
Date: June 14, 2007 01:10AM

Quote

reason why I went with godaddy and zoneedit, because they were recommended in the guide
Poor thing!!!

When you've already reached your router UI, you're almost there, or might be your problem now becomes so simple and right in front of you to the point that you can't see it.

Quote

oh well, now I'm more just rambling since I know it's not really an issue with WAMP... so no worries

Not happy so fast cause it might be, and also your router setup

Have fun,





Post Edited (06-14-07 04:33)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Potential Issues w/ httpd-vhosts file
Posted by: CyberSpatium (71.237.217.---)
Date: June 14, 2007 11:57PM

Q.) So Apache wouldn't start if the files were incorrect? So since it's started, this means the issue must be else where then?
A.) apache will not start if it it detects any errors in your config files. this does not mean your virtual host is working. it does not matter if you have your domain name pointed correctly to apache or not, as long as there are no errrors in your config files, apache will start.

Q.)Upon reading on zoneedit's faq, i wonder if it's because my ISP blocked port 80,,, didn't realise it was against my TOS
A.) dns has nothing to do with what port you use for apache.

to change the port apache listens to:

open httpd.conf file and find:
Listen 80

change to:
Listen 81

save the file. now edit your httpd-vhosts.conf . change your old virutal host setting you posted above:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
DocumentRoot C:/wamp/users/mydomain.com/public_html
ServerName www.mydomain.com
ServerAlias mydomain.com
ErrorLog C:/wamp/users/mydomain.com/logs/error.log
CustomLog C:/wamp/users/mydomain.com/logs/access.log common
</VirtualHost>

change to
NameVirtualHost *:81
<VirtualHost *:81>
ServerAdmin admin@mydomain.com
DocumentRoot C:/wamp/users/mydomain.com/public_html
ServerName www.mydomain.com
ServerAlias mydomain.com
ErrorLog C:/wamp/users/mydomain.com/logs/error.log
CustomLog C:/wamp/users/mydomain.com/logs/access.log common
</VirtualHost>


save the file and now restart apache for all the new settings to take effect. since you changed the default port apache uses from 80 to a different one, you will need to add that new port your servers localhost url like this:

[localhost]
[localhost]


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote


Sorry, only registered users may post in this forum.