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>
Share:
44,969

Related videos on Youtube

maggonakolla
Author by

maggonakolla

Updated on September 18, 2022

Comments

  • maggonakolla
    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
    Admin about 2 years
    This answer leads to a deprecated article.