I recently attempted to install Apache webserver for local development and had a tough time getting it to start as it couldnt connect to port 80 on localhost. I found out that the problem was iTunes and all the stupid services it installs. somehow iTunes had taken over my port 80 on 127.0.0.1. so before sarting Apache you need to go into task manager and stop all the pesky apple services!! Anyway so the process for installing and configurig Apache for Virtual Host names on IIS goes as follows:
1) Make sure all iTunes services have stopped
2) Install Apache choosing localhost as your domain names and admin@localhost for your server name and use default settings for every thing else.
3) change the following in the httpd.conf file :
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
to
LoadModule vhost_alias_module modules/mod_vhost_alias.so
and
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
to
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
4) For each vhost add the following to the \conf\extra\httpd-vhosts.conf file and delete whatever is there. For a site called tacsite I have done the following:
<VirtualHost *:80>
DocumentRoot "D:\path\to\source"
ServerName tacsite
ServerAlias tacsite
</VirtualHost>
<Directory "D:\path\to\source">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
5) Then alter your hosts file (C:\\WINDOWS\system32\drivers\etc\hosts) adding the following:
127.0.0.1 tacsite
6) then point your browser to the following URL: ‘http://tacsite/‘ or as I do simply type ‘tacsite‘ into mozilla!
This entry was posted in Apache and tagged Apache, itunes, pc, windows. Bookmark the
permalink. Both comments and trackbacks are currently closed.
Apache Virtual Hosts iTunes and cant connect to port 0.0.0.0:80
I recently attempted to install Apache webserver for local development and had a tough time getting it to start as it couldnt connect to port 80 on localhost. I found out that the problem was iTunes and all the stupid services it installs. somehow iTunes had taken over my port 80 on 127.0.0.1. so before sarting Apache you need to go into task manager and stop all the pesky apple services!! Anyway so the process for installing and configurig Apache for Virtual Host names on IIS goes as follows:
1) Make sure all iTunes services have stopped
2) Install Apache choosing localhost as your domain names and admin@localhost for your server name and use default settings for every thing else.
3) change the following in the httpd.conf file :
#LoadModule vhost_alias_module modules/mod_vhost_alias.soto
and
to
# Virtual hosts Include conf/extra/httpd-vhosts.conf4) For each vhost add the following to the
\conf\extra\httpd-vhosts.conffile and delete whatever is there. For a site called tacsite I have done the following:5) Then alter your hosts file (C:\\WINDOWS\system32\drivers\etc\hosts) adding the following:
6) then point your browser to the following URL: ‘http://tacsite/‘ or as I do simply type ‘tacsite‘ into mozilla!