Ubuntu: How to create symbolic link to apache document root?


My apache document root locate in /var/www and i created a directory called testwp on /var/www. I changed some privileges

  • sudo chown -R $USER:$USER /var/www/testwp

  • sudo chmod 755 /var/www/testwp

but i cant access that directory from my web browser http://localhost/testwp and it says

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

How can i access like that?

can i do that? please help me. thanks


In sites-available/your-site what have you set for DocumentRoot?

Make it point to /var/www

ServerAdmin webmaster@localhost

    DocumentRoot /var/www      <Directory />              Options FollowSymLinks              AllowOverride None      </Directory>      <Directory /var/www/>              Options Indexes FollowSymLinks MultiViews              AllowOverride None              Order allow,deny              allow from all      </Directory> . . .  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »