Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I removed Plesk from my server and now I'm trying to figure out how the virtual hosting works.

My etc/apache2/apache2.conf and etc/apache2/sites-available/default both appear to point to /var/www/ yet when I open www.domain.com in a browser it is being pointed at /var/www/vhosts/domain.com/httpdocs/

Is there some entry in some configuration file I don't know about?

How can I change the location of my httpdocs?

share|improve this question
    
What version of apache are you using could it be the mpm-itk? It automatically serves files from a path parsed from the hostname. –  user993553 Jul 12 '13 at 22:10
    
I meant mod_vhost_alias see httpd.apache.org/docs/current/mod/mod_vhost_alias.html –  user993553 Jul 12 '13 at 22:17
    
apache2 version is 2.2.22. I Don't think that's the issue, It looked promising but I don't have a /user/local/apache2/ folder –  andrew Jul 12 '13 at 22:27
    
Is the VirtualDocumentRoot set anywhere in /etc/apache2/ e.g cd /etc/apache2; grep -lir VirtualDocumentRoot ./* –  user993553 Jul 12 '13 at 22:35
1  
You should write your solution as an answer, so someone can upvote it. It's alright to answer your own questions, and you get reputation for it. –  Falcon Momot Jul 13 '13 at 2:49

1 Answer 1

up vote 0 down vote accepted

Solution found:

This file: /etc/apache2/conf.d/zz010_psa_https.conf contained:

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA.

Include '/opt/psa/admin/conf/generated/13734840460.49232200_server.include'

The included file was basically a second apache2.conf, overriding all the settings of the original.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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