how to setup an alias apache2
44,969
I would expect an alias to be included in the virtual host you created in /etc/apache2/sites-enable/
.
Example:
VirtualHost *>
ServerName example.com
DocumentRoot /var/www/html/website
Alias /website "/var/www/html/website"
<Directory "/var/www/html/website">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Related videos on Youtube
Author by
maggonakolla
Updated on September 18, 2022Comments
-
maggonakolla almost 2 years
I am new to UBUNTU and try to use apache to check a website that I am currently developing using Joomla (novice to that too). I am trying to setup an alias in httpd.conf, but have not been successful. Your help is appreciated.
-
Admin about 2 yearsThis answer leads to a deprecated article.