Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

742
Views
Why does Apache serve from /usr/local/apache2/htdocs and not /var/www/html?

In /etc/apache2/sites-enabled/000-default.conf I have the following config:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
</VirtualHost>

However, when I visit localhost, I get the "It works!" page, which is located in /usr/local/apache2/htdocs. (I've verified this by changing the file's contents and refreshing the page.)

Why is Apache serving from /usr/local/apache2/htdocs instead of /var/www/html as specified in the config?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Look for a symlink on either /var/www or /var/www/html.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!