Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

10.10 and Apache2 configuration files

  Date: Nov 27    Category: Unix / Linux / Ubuntu    Views: 358
  

Probably not specifically a 10.10 issue, but perplexing nonetheless:
here's the deal . . .
for legacy reasons my website documentroot path is /web/httpd/htdocs/
-- no matter what I change in the apache2 configuration files
(/etc/apache2/apache2.conf, /etc/apache2/sites-available/default) the
server tries to go to /etc/apache2/htdocs. My question is - where is
apache2 getting this? I have scoured my system looking for places that
this config info may be hiding but cannot find it. I need to get this
server stood up soon - anybody got any ideas here?

Share: 

 

4 Answers Found

 
Answer #1    Answered On: Nov 27    

I'll throw this out one more time and see if anyone bites . . .

my website DocumentRoot is /web/httpd/htdocs/ -- no matter what I
change in the apache2 configuration files (/etc/apache2/apache2.conf and
/etc/apache2/sites-available/default) the
server tries to go to /etc/apache2/htdocs. My question is - where is
apache2 getting this?

I have searched my entire system with the following command:

find . -type f | xargs -n 30 grep DocumentRoot

The only places DocumentRoot is mentioned is where I expected it to be
and everything is spelled correctly, etc. Strange.

I might also add that these same config files are running just fine on
four other servers - three Debian systems and one Ubuntu 10.04. Another
interesting clue is that apache2 will not start at all if
/web/httpd/htdocs/ is not there (I moved it aside) even though it never
seems to reference it after the initial check. The site "sort of works"
by placing a soft link in the /etc/apache2 directory and pointing it at
the "real" DocumentRoot. But that is a hack - and it messes up the log
file locations I want.

So - need help here . . . Anyone??

 
Answer #2    Answered On: Nov 27    

That's a head scratcher - it ought to just work. You're restarting
apache after the config changes, right?

And there is only one apache running and one apache installed on the
system, correct?

 
Answer #3    Answered On: Nov 27    

Yeah, all of that. I may be getting closer - I think I have a problem
in the virtual hosting configs. I can get it to work now but with only
one of the hosts. This site has two url's handled by virtual hosting.

 
Answer #4    Answered On: Nov 27    

Fixed it - the problem was in my virtual host configuration. I have
several urls hosted by this same site. Thanks for the replies . . .

 
Didn't find what you were looking for? Find more on 10.10 and Apache2 configuration files Or get search suggestion and latest updates.




Tagged: