Forum Moderators: phranque

Message Too Old, No Replies

How to change default virtual server directory?

         

Blackie

9:32 pm on Jun 2, 2005 (gmt 0)

10+ Year Member



Hi there,

I wonder how to change default virtual server directory?

System as of today:
SUSE 9.3
Apache 2.0
everything installed by default.

When putting a web-page into the default "htdocs" directory everything is ok.
I need to set up couple of virtual servers which should be placed elsewhere (say /home/users/user1, etc) insted of the default "htdocs".

When setting the virtual server up and starting apache everything is fine, but when I trying access the web-page I get following error:

"Access forbiden.
You do not have permission to access the requested directory"

I checked the permissions which was ok. In order just to test it I did chmod 777 without advancing any further.

Anybody got a clue of what else should I check and change?

Thanx in advance.

sitz

4:17 pm on Jun 3, 2005 (gmt 0)

10+ Year Member



anything useful in your error log?

Blackie

5:14 pm on Jun 4, 2005 (gmt 0)

10+ Year Member



Error log
xx.xx.#*$!.xx - - [04/Jun/2005:19:11:47 +0200] "GET / HTTP/1.1" 403 1031
xx.xx.#*$!.xx - - [04/Jun/2005:19:11:47 +0200] "GET /favicon.ico HTTP/1.1" 406 -

Access log
[Sat Jun 04 19:11:47 2005] [error] [client xx.xx.xxx.xx] client denied by server
[Sat Jun 04 19:11:47 2005] [error] [client xx.xx.xxx.xx] client denied by server
[Sat Jun 04 19:11:47 2005] [error] [client xx.xx.xxx.xx] no acceptable variant:

Just in case virtual server config:
<VirtualHost 172.16.1.9>
DocumentRoot /home/users/user1/html
ServerName test.test.org
ServerAlias alias.test.net
ServerAdmin xxxx@test.org
ScriptAlias /cgi-bin/ "/home/users/user1/cgi-bin/"
#ErrorDocument 403 [test.org...]
ErrorLog /home/users/user1/log/user1-error.log
TransferLog /home/users/user1/log/user1-access.log
</VirtualHost>

Blackie

12:37 pm on Jun 5, 2005 (gmt 0)

10+ Year Member



Anyone? :-)

Blackie

6:38 am on Jun 8, 2005 (gmt 0)

10+ Year Member



nevermind :-)
done!