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
Hi sorry total noob to Apache and Macs here...
I've set up a few virtual hosts in Lion and it's running very slowly.
I'm struggling with getting Virtual Hosts running on my local Lion development machine.
Here's the scenario.
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.
I have problems with apache on MAC OS Lion 10.7.5.
I have VirtualHosts:
<VirtualHost *:80>
ServerName devel.dev
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName test.dev
DocumentRoot /var/www
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</
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 have a problem with VirtualHosts which Apache 2.4.
I want to set up a VirtualHost so that when I type the project name in the address bar, it goes to the home page of the project.
httpd-vhosts.conf files in both XAMPP configuration and apache configuration:
<VirtualHost project>
ServerAdmin project@random.com
ServerName project
DocumentRoot /Users/path/to/project/public
<Directory "/Users/path/to/project/public">