Hi sorry total noob to Apache and Macs here...
I have just installed xampp on windows 7 and I'm trying to configure multiple virtual hosts. I want to give Apache access to all subdirectories since I would like to use each of them as a virtual host root.
Alright, this is what I am trying to do.
In apache when I go to the httpd file there is the line for including a conf file "Include conf/extra/hosts/httpd-vhosts.conf" where you can place vhosts in.
Organization wise I do not appreciate this. SO, i changed Include conf/extra/httpd-vhosts.conf to Include conf/extra/hosts/*.conf which should mean it looks for any file that's a .conf.
Getting local devel environment setup with Apache 2.4.
I have two apache servers running on windows 7. The one that comes bundled with XAMPP(running on port 80) and the one that comes with Zend(running on port 81). I would like to setup virtual hosts on the port 81. How would I go about this ? This is what I have put in the httpd-vhosts.
I've finally made the switch to Lion but I'm having trouble setting up an Apache VirtualHost.
What is wrong here?
NameVirtualHost *:80
<VirtualHost _default_:80>
ServerName domain1.com
DocumentRoot /var/www/html/domain1-com
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot /var/www/html/domain2-com
</VirtualHost>
Problem:
domain1.com correctly serves the content at /var/www/html/domain1-com, b
I'm used to Ubuntu, where there is a special file for containing the virtual hosts.
But I'm getting the impression that in CentOS the virtual hosts are listed right in the main configuration file.
Can anyone confirm this?
EDIT - Tried this and it didn't work:
Added this to httpd.conf
<VirtualHost *:80>
ServerName example.com
ErrorLog /var/www/example_apache_errors.log
I currently have WAMPSERVER 2.2 set up on my PC.
I'm trying to set up a new host called pplocal.local
I made the changes in httpd.conf to uncomment this:
Include conf/extra/httpd-vhosts.conf
Then, I edited httpd-vhosts.cong and I added the following:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot "E:/wamp2/www/"
ServerName localhost
</VirtualHost>
<Virtu