1 |
hi, |
2 |
|
3 |
ich verfüge über mehrere virtuelle Apache Einrichtungen. Einige von |
4 |
ihnen will ich mit awstats ausstatten. Dazu habe ich nach einem emerge |
5 |
awstats folgendes ausgeführt: |
6 |
|
7 |
webapp-config -I -h www.foo.com -d \ /var/www/foo.com/htdocs/awstat/ |
8 |
awstats 6.1 |
9 |
|
10 |
Danach hat er eine ganze Menge kopiert und Symlinks erstellt. Als |
11 |
letztes spuckte er aus: |
12 |
|
13 |
================================================================= |
14 |
|
15 |
# Content of this file, with correct values, can be automatically added |
16 |
to |
17 |
# your Apache server by using the AWStats configure.pl tool. |
18 |
# |
19 |
|
20 |
# |
21 |
# Directives to add to your Apache conf file to allow use of AWStats as |
22 |
a CGI. |
23 |
# Note that path "/usr/local/awstats/" must reflect your AWStats install |
24 |
path. |
25 |
# |
26 |
Alias /awstatsclasses "/usr/share/webapps/awstats/6.1/htdocs/classes/" |
27 |
Alias /awstatscss "/usr/share/webapps/awstats/6.1/htdocs/css/" |
28 |
Alias /awstatsicons "/usr/share/webapps/awstats/6.1/htdocs/icon/" |
29 |
ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.1/hostroot/cgi-bin/" |
30 |
|
31 |
# |
32 |
# This is to permit URL access to scripts/files in AWStats directory. |
33 |
# |
34 |
<Directory "/usr/share/webapps/awstats/6.1/htdocs"> |
35 |
Options None |
36 |
AllowOverride None |
37 |
Order allow,deny |
38 |
Allow from all |
39 |
</Directory> |
40 |
|
41 |
==================================================================== |
42 |
|
43 |
Hmm, dachte ich mir, irgendwas fehlt da. Nunja, ich habe es in die |
44 |
entsprechende www.foo.com.conf eingeflegt. Wie ich es mir schon dachte, |
45 |
klappt der Zugriff nicht: |
46 |
|
47 |
|
48 |
[Thu Sep 23 13:58:35 2004] [error] [client 217.82.47.149] (13)Permission |
49 |
denied: access to /awstatsicons/other/page.png denied |
50 |
|
51 |
[Thu Sep 23 14:02:11 2004] [error] [client 217.82.47.149] client denied |
52 |
by server configuration: |
53 |
/usr/share/webapps/awstats/6.1/hostroot/cgi-bin/awstats.pl |
54 |
|
55 |
[Thu Sep 23 14:04:42 2004] [error] [client 217.82.47.149] client denied |
56 |
by server configuration: |
57 |
/usr/share/webapps/awstats/6.1/hostroot/cgi-bin/awstats.p |
58 |
|
59 |
[...] |
60 |
|
61 |
Ich habe in der Config schon ein Options followSymlinks eingefügt, |
62 |
brachte aber keine Abhilfe. |
63 |
|
64 |
Die komplette Apache Config sieht so aus: |
65 |
|
66 |
============================================================= |
67 |
<VirtualHost *> |
68 |
|
69 |
ServerAdmin webmaster@×××.com |
70 |
ServerName www.foo.com |
71 |
ServerAlias foo.com.com |
72 |
ErrorLog /home/httpd/foo.com/websites/foo.com/log/error.log |
73 |
CustomLog /home/httpd/foo.com/websites/foo.com/log/access.log combined |
74 |
php_admin_flag engine on |
75 |
php_admin_value open_basedir |
76 |
"/home/httpd/foo.com/websites/foo.com.com/htdocs:/home/httpd/foo.com/websites/foo.com/tmp:." |
77 |
DirectoryIndex index.php |
78 |
|
79 |
DocumentRoot /home/httpd/foo.com/websites/foo.com/htdocs/ |
80 |
ScriptAlias /cgi-bin/ /home/httpd/foo.com/websites/foo.com/cgi-bin/ |
81 |
|
82 |
<Directory /home/httpd/foo.com/websites/foo.com/htdocs/> |
83 |
Options FollowSymLinks |
84 |
AllowOverride All |
85 |
Order allow,deny |
86 |
Allow from all |
87 |
</Directory> |
88 |
|
89 |
<Directory /home/httpd/foo.com/websites/foo.com/cgi-bin/> |
90 |
AllowOverride None |
91 |
Options ExecCGI |
92 |
Options FollowSymLinks |
93 |
Order allow,deny |
94 |
Allow from all |
95 |
</Directory> |
96 |
|
97 |
Alias /daffy "/home/httpd/foo.com/websites/foo.com/htdocs/" |
98 |
<Location /daffy> |
99 |
DAV on |
100 |
AuthType Basic |
101 |
AuthName "WebDAV Storage" |
102 |
AuthUserFile |
103 |
/home/httpd/foo.com/websites/foo.com.com/etc/daffy.passwd |
104 |
<LimitExcept GET OPTIONS> |
105 |
require user foo.com |
106 |
|
107 |
</LimitExcept> |
108 |
</Location> |
109 |
|
110 |
## awstats ## |
111 |
Alias /awstatsclasses "/usr/share/webapps/awstats/6.1/htdocs/classes/" |
112 |
Alias /awstatscss "/usr/share/webapps/awstats/6.1/htdocs/css/" |
113 |
Alias /awstatsicons "/usr/share/webapps/awstats/6.1/htdocs/icon/" |
114 |
ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.1/hostroot/cgi-bin/" |
115 |
|
116 |
# |
117 |
# This is to permit URL access to scripts/files in AWStats directory. |
118 |
# |
119 |
<Directory "/usr/share/webapps/awstats/6.1/htdocs"> |
120 |
AllowOverride None |
121 |
Options FollowSymLinks |
122 |
Order allow,deny |
123 |
Allow from all |
124 |
</Directory> |
125 |
|
126 |
|
127 |
</VirtualHost> |
128 |
============================================================= |
129 |
|
130 |
Hat da jemand einen Lösungsweg? |
131 |
|
132 |
cu denny |