Link to home
Start Free TrialLog in
Avatar of Daniel Wilson
Daniel WilsonFlag for United States of America

asked on

Apache on Windows Vista -- virtual hosts STILL not working!

installed Apache 2.2 on Windows Vista

Last night, I thought we'd gotten virtual hosts working, because with the latest change, http://BlackLocustSoftware.bls took me to the right spot.

Today I added more virtual hosts ... and they all took me to the directory for the first virtual host in the list.  I then tested and found that http://127.0.0.1 was now taking me that folder as well, not my basic Websites folder.

I would MUCH appreciate somebody helping me get this thing right!

Attaching httpd.conf ...
ServerRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2"
 
Listen 80
 
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
 
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User daemon
Group daemon
</IfModule>
</IfModule>
 
ServerAdmin Daniel.Wilson@BlackLocustSoftware.com
DocumentRoot "D:/Business/WilliamstonConsulting/Websites/"
 
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
 
<Directory "D:/Business/WilliamstonConsulting/Websites/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
 
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>
 
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>
 
ErrorLog "logs/error.log"
 
LogLevel debug
 
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "logs/access.log" common
</IfModule>
 
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/"
</IfModule>
 
<IfModule cgid_module>
</IfModule>
 
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
 
DefaultType text/plain
<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>
 
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
 
## Virtual Hosts -- configure these in HOSTS file!
 
NameVirtualHost *:80
 
<VirtualHost BlackHistoryReview.BLS>
 ServerName BlackHistoryReview.BLS
 ServerAdmin Daniel.Wilson@BlackLocustSoftware.com
 DocumentRoot "D:/Business/WilliamstonConsulting/Websites/BHR"
</VirtualHost>
 
<VirtualHost BlackLocustSoftware.BLS>
 ServerName BlackLocustSoftware.BLS
 ServerAdmin Daniel.Wilson@BlackLocustSoftware.com
 DocumentRoot "D:/Business/WilliamstonConsulting/Websites/WC"
</VirtualHost>
 
<VirtualHost ChainsWeCanBelieveIn.BLS>
 ServerName ChainsWeCanBelieveIn.BLS
 ServerAdmin Daniel.Wilson@BlackLocustSoftware.com
 DocumentRoot "D:/Business/WilliamstonConsulting/Websites/Chains"
</VirtualHost>
 
<VirtualHost JohnScottUpholstery.BLS>
 ServerName JohnScottUpholstery.BLS
 ServerAdmin Daniel.Wilson@BlackLocustSoftware.com
 DocumentRoot "D:/Business/WilliamstonConsulting/Websites/JohnScottUpholstery"
</VirtualHost>
 
 
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files (x86)/PHP/"
LoadModule php5_module "C:/Program Files (x86)/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Open in new window

Avatar of MiLLeNNiuM
MiLLeNNiuM
Flag of Brazil image

Oh hello again, im installing apache again and we gonna fix it. Gimme a few mins.
ASKER CERTIFIED SOLUTION
Avatar of MiLLeNNiuM
MiLLeNNiuM
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Daniel Wilson

ASKER

That did it.  Thanks!
You welcome, please take a look into my request.
As far as the cleanup, I work in only a couple zones, SQL Server 2005 and Network Routers.  (I'm trying to remember how I got into Network Routers ...)

Are your questions there?  Otherwise, somebody else will have to get to them.

Also, we have to wait until they've been inactive for 21 days first. So ... those points you've earned are going to sit there a while I'm afraid.  But they will catch up with you eventually.
I see, as you know im new to the system, i didn't really know how it works.
I ll just wait the normal period them, thanks for clarifying.
No problem.

It is frustrating, especially when you're getting started.