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: Vitrual Hosts Weirness |
|
Author |
|
notsean
Joined: 15 Dec 2009 Posts: 2
|
Posted: Tue 15 Dec '09 23:38 Post subject: Vitrual Hosts Weirness |
|
|
I am running Apache 2.2 on Windows 2K Pro.
To test certain sites I need to have a 'domain name' of site.tmp (it needs the dot 3).
I had this running and now it does not. I need localhost to be the root and site.tmp to point to a specific folder. I have googled and tried many theories to no avail, does anyone have any ideas?
httpd.conf
Include "conf/extra/httpd-vhosts.conf"
httpd-vhosts.conf
NameVirtualHost *
<VirtualHost *>
ServerName localhost
Options All
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
</VirtualHost>
<VirtualHost *>
ServerName site.tmp
Options All
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/SDCtest/Hyatt"
</VirtualHost>
HOSTS (windows)
127.0.0.1 localhost
127.0.0.1 site.tmp
accessing http://localhost renders the root
accessing http://127.0.0.1 renders the root
accessing http://site.tmp renders
Code: | Service Unavailable
The proxy is currently unable to handle the request due to a (possibly) temporary error. Extended error information is:
* Failed to forward the request to the web server at site.tmp:80. This may be due to a firewall configuration error or a DNS failure.
If this situation persists, please contact your security gateway administrator. |
The odd things is that pinging site.tmp resolves to 127.0.0.1 and has the same TTL (128) as pinging localhost
A Tracert returns the same thing.
A httpd -t -D DUMP_VHOSTS returns
Code: | NameVirtualHost 127.0.0.1 has no VirtualHosts
VirtualHost configuration:
wildcard NamedVirtual Hosts and _default_ servers:
*:* localhost (C:/Program Files/Apache Software Foundation/Apache2.2/htdocs:47)
*:* site.tmp (C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/SDCtest/Hyatt:52)
Syntax OK
|
Thanks for helping! |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Wed 16 Dec '09 4:01 Post subject: |
|
|
The error message is very similar to one of the messages in Symantec Security Gateways Page 174: Quote: | 238 - Failed to forward the request to the Web server.
This may be due to a security gateway configuration error or DNS failure
Description: The HTTP daemon fails to forward the request to the Web server.
The daemon is misconfigured or is unable to locate a proxy |
If you are running this software, or maybe a similar Symantec product - perhaps you can configure it to recognize site.tmp as a valid alias for localhost. It might even be as simple as restarting the security service after you added site.tmp to your drivers/etc/hosts file.
-tom- |
|
Back to top |
|
notsean
Joined: 15 Dec 2009 Posts: 2
|
Posted: Wed 16 Dec '09 16:52 Post subject: |
|
|
I am in a corporate environment where there is no Internet Security apps on the desktop systems (short of virus protection - and disabling that has no effect). |
|
Back to top |
|
PipoDeClown
Joined: 20 Dec 2005 Posts: 77
|
Posted: Thu 17 Dec '09 21:05 Post subject: |
|
|
the message you receive is very clear.
make sure you can resolve your hostname site.tmp (which i doubt is possible) and if not: contact the "security gateway administrator" or anyone who is able and allowed to make that change in the corporate nameserver. |
|
Back to top |
|
|
|
|
|
|