Page 1 of 1

XAMPP Windows 7 httpd-vhosts.conf Virutal Hosts

Posted: Fri Jan 16, 2015 2:36 pm
by cecilchampenois
I added the below to the httpd-vhosts.conf file and Apache Server would no longer work. of course, I stopped the server while I made the change. I restarted the server after making the change. I also put into the HOSTS file "127.0.0.1 phpacademy" This is the error:
[text]
12:22:47 PM

Code: Select all

 	Status change detected: stopped
12:22:47 PM  [Apache] 	Error: Apache shutdown unexpectedly.
12:22:47 PM  [Apache] 	This may be due to a blocked port, missing dependencies, 
12:22:47 PM  [Apache] 	improper privileges, a crash, or a shutdown by another method.
12:22:47 PM  [Apache] 	Press the Logs button to view error logs and check
12:22:47 PM  [Apache] 	the Windows Event Viewer for more clues
12:22:47 PM  [Apache] 	If you need more help, copy and post this
12:22:47 PM  [Apache] 	entire log window on the forums
[/text]
Is there anything wrong with the below setup?
[text]
<VirtualHost *>
    ServerAdmin admin@phpmyacademy.com
    DocumentRoot "C:/xampp/htdocs/phpacademy" # change this line with your htdocs folder
    ServerName phpmyacademy
    <Directory "C:/xampp/htdocs/phpacademy">
        Options Indexes FollowSymLinks Includes ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
[/text]