I have a virtual host file /etc/apache2/sites-available/supervisor2.conf:

<VirtualHost *:80>

ServerAdmin myemail@test.com
ServerName ???
DocumentRoot /var/www/supervisor/public_html

<Directory /var/www/supervisor/public_html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


I have added the website via: a2ensite supervisor2

I have confirmed that /var/www/supervisor2 exists, and I want to access it via "" but I get:

Not Found The requested URL /supervisor2 was not found on this server.

Any help would be appreciated to help me get this working.


I actually just had to edit my 000-default.conf file and add:

Alias /supervisor2 /var/www/supervisor/public_html


There is no mention of "supervisor2" in your configuration. Don't forget to restart Apache after correction.

  • This is the part I'm not sure how to do. I have a .conf file that works with a www domain which points to a /var/www location e.g.: ServerName mywebsite.ca ServerAlias www.mywebsite.ca But how would I do this if I want to type in the web address as – user3144903 Apr 27 '20 at 2:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.