1

Please help me to solve this issue as I am new to apache2.

My question is how to point "localhost" default /var/www to /var/www/joomla. Because whenever I type "localhost" in the browser it shows like it works! But instead of that I want to point that "localhost" default to my joomla site folder.

Even I tried running gksu gedit /etc/apache2/sites-available/site1 through the terminal and point it to my sites but nothing has changed.

Thanks in advance.

Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400

1 Answers1

1

These worked for me:

  1. Using the terminal, start to edit with root priviledges /etc/apache2/sites-available/000-default.conf file using nano for example:

    sudo nano /etc/apache2/sites-available/000-default.conf
    
  2. Find the following line:

    DocumentRoot /var/www
    
  3. Replace the above line with:

    DocumentRoot /var/www/joomla
    
  4. Save the file and close it.

  5. Restart apache2 server:

    sudo service apache2 restart
    
Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400
  • Thanks for your healp but now problem has been solved using this command cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site1 – user3425139 Mar 16 '14 at 09:53