I had my LAMP server crushed for some reason. That's why I've completely removed it and installed once again. Installation was successful and "localhost" is working fine. However every time I'm trying to add a virtual host (using a2ensite command) my apache2 server stop working. When I run a2dissite command of a corresponding virtual host, the server start working again. Please, help me to solve this issue.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
as of for subdomains 000-default use ServerAdmin webmaster@localhost ServerName yourdomain.com ServerAlias subdomain.domain.com DocumentRoot /home/username/public_html/example Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all
|
|||
|
|
<VirtualHost *:80> ServerAdmin webmaster@example.com ServerName myhost ServerAlias www.myhost DocumentRoot /home/stas/projects/myhost ErrorLog /home/stas/projects/myhost/logs/error.log CustomLog /home/stas/projects/myhost/logs/access.log combined <Directory /home/stas/projects/myhost/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>– Stas Dec 8 '11 at 19:53