Category Archives: Apache

Virtualhost code in Apache

<VirtualHost www.website.com:80> ServerAdmin root@localhost DocumentRoot /var/www/website/www_website_com/ ServerName www.website.com ServerAlias www.website.com ErrorLog /var/www/website/logs/www.website.com.error_log CustomLog /var/www/website/logs/www.website.com.access_log common <Directory /var/www/website/www_website_com/> AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> 0

Read More »

Alias code in Apache

If you want to add alias in apache, place this code in apache.conf or httpd.conf (depending on your OS) Alias /alias_name/ “/var/www/alias_dir/” <Directory “/var/www/alias_dir”> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 0

Read More »