Jump to content

Does windows 7 block virtual hosts


clintonb

Recommended Posts

I have re-installed my apache server on windows 7 after upgrading from xp and i copied all the apache config files from the xp system together with my webpages onto the new system and it no longer works. The hosts files seems to work fine because i can ping the domain name but for some reason when i enter the domain into my browser, i just keep getting that annoying bing.com webpage. The config files have worked previously and i've checked all the parameters and this should work. Has anyone experienced something similar?

Link to comment
Share on other sites


This seems to be more of an Apache issue rather than Windows 7. I had some problems with this on Server 2008 R2 x64 but it always came down to things fixed in the httpd.conf.

You can get rid of that bing page by changing the Advanced Internet Options - do not search from the address bar.

Anyways, can you at least get to the root domain, just not the subdomains?

Link to comment
Share on other sites

  • 2 weeks later...

This seems to be more of an Apache issue rather than Windows 7. I had some problems with this on Server 2008 R2 x64 but it always came down to things fixed in the httpd.conf.

@Tripredacus, can you tell me what tweaking you're talking about in httpd.conf? I'm having the same problem. My "localhost" works, but none of the other vhosts I've set up are working - even though I set them up the same as I had in Vista (and even in XP before that).

Link to comment
Share on other sites

Here is an example. I had a cms that was installed in htdocs. This cms you could upload files to the "uploads" folder so say htdocs\cms\uploads... The problem for me was that I have htdocs (and Apache) running on a drive with 60GB space. So I have another volume (E: ) and I made an uploads folder there ie: e:\uploads.

So I needed it to be made that anything that was sent to the uploads folder could be written to (this worked fine) and read from e:\uploads. Unfortunately, I could upload files there without a problem but anything viewed from there (like pictures) would generate a 404. I also could not browse directly to the uploads folder like to domain.com/cms/uploads, this would make a 404 as well, so it wasn't serving HTML from there either.

I fixed it by adding the following to my httpd.conf:

Alias /cms/uploads "e:\uploads"

<Directory "E:\uploads">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

I could probably get away with removing the ExecCGI part, but I just found an example online and used it.

Also, since I am using this on 2008 R2, I had to set permissions properly on the folder in order for the Alias to work properly. This is likely a little different than what you are looking for, but maybe it will make you think of some new search terms.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...