View Full Version : subdomain issue
Dy0nisus
13th January 2007, 16:05
Hi again!
We run one Soldat-Server on the ISPConfig controlled Webserver. As we
had no Management - tool for the webserver we createt a subdomain for
the log - files of the soldat server like this
<virtual host>
servername sub.domain.com
documentroot /home/user/server/log
</virutal host>
with ISPConfig u can setup subdomain only within the web dir of the web, right?
I tried to setup a sym link ... doesn't work ... I get permission problems, even if the owner of the log folder ist the same user of the web.
Is there any workaround?
martinfst
13th January 2007, 16:16
Did you copy/paste or retype the configuration info? This is at least in error </virutal host>And IIRC Apache is also picky at correct usage of capitals for directives.
Dy0nisus
13th January 2007, 16:19
no it was no copy and paste, just a quik typing of what i want to achieve
martinfst
13th January 2007, 16:28
You should "open" the above directories of /home/user/server/log in such a way that the Apache user can create the log files. On Debian/Ubuntu that would mean drwxr-xr-x (someting like this) for all the directories in the structure /home/user/server/log and change the owner of the log directory to the id that runs apache (www-data ?).
If you run suPHP of suexec it get's more complicated. Then you might need to make your log directory world writable, but that's for obvious security reasons not advisable.
Dy0nisus
13th January 2007, 16:31
hm i guess we got a little missunderstanding ...
the apache should not wirte any logs ... the soldatserver writes logs ...
and we want an subdomain pointing at /home/user/server/logs to read
the logs.
martinfst
13th January 2007, 16:35
Then the path /home/user/server/logs should be open for you webserver user for reading.....
Dy0nisus
13th January 2007, 16:38
anybody can read this dir thats the problem!
but always: Fehler 403 - Verboten!
so i guess ist the problem with the sym link
ln -s /home/user/server/log /var/www/web2/web/user/log
martinfst
13th January 2007, 16:48
Can you check the Apache directives SymLinksIfOwnerMatch and FollowSymLinks?
Dy0nisus
13th January 2007, 17:01
I added
Options +FollowSymLinks
to the Apache Directives field of the web in ISPConfig
martinfst
13th January 2007, 17:03
Did this fix your problem?
Dy0nisus
13th January 2007, 17:06
no didn'T fix the problem
Dy0nisus
13th January 2007, 17:09
wait ... now i see the shered ip html page ... ?!
EDIT:
hmm ... if i type the path www.server.com/user/log ... error 404
if i type user.server.com ... shared ip ...
user.server.com refers to www.server.com/user/log
EDIT:
i just was to stupid to typ the right url ... its still the problem 404
EDIT:
quote form the logfile:
[Sat Jan 13 16:50:46 2007] [error] [client 85.183.25.21] Directory index forbidden by rule: /var/www/web2/web/user1771/24274/logs/
Dy0nisus
13th January 2007, 18:15
Ahhh searched at the wrong pleace ...
in /etc/apache2/apache2.conf
ISPConfig sets Options
-Indexes ...
switched it to + .. now it works
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.