C
crusader
Guest
Gibt es irgendwo eine Anleitung wie man die Templates (speziell Apache vhosts) ändert?
Gibt es irgend welche Variablen mit denen ich vhost abhängig daten eintragen lassen kann?
Beispiel:
# httpd [shop.fahnen-gaertner.com] sub entry BEGIN.
<VirtualHost 88.198.62.36:80>
#
#User vu2002
#Group vu2002
#
#
#SuexecUserGroup vu2002 vu2002
#
ServerAdmin root@fahnen-gaertner.com
DocumentRoot /srv/www/virtual/fahnen-gaertner.com/htdocs/shop/fs2/shops/admin_admin
ServerName shop.fahnen-gaertner.com
ServerAlias www.shop.fahnen-gaertner.com shop.fahnen-gaertner.com *.shop.fahnen-gaertner.com
ErrorLog /var/log/apache2/users/shop.fahnen-gaertner.com-error.log
TransferLog /var/log/apache2/users/shop.fahnen-gaertner.com-access.log
CustomLog /var/log/apache2/fahnen-gaertner.com-traf.log traff
CustomLog /var/log/apache2/fahnen-gaertner.com-combined.log combined
Alias /errors /srv/www/virtual/fahnen-gaertner.com/errors/
<Directory /srv/www/virtual/fahnen-gaertner.com/errors/>
php_admin_value open_basedir "/srv/www/virtual/fahnen-gaertner.com/errors/"
</Directory>
ErrorDocument 401 /errors/401/index.php
ErrorDocument 403 /errors/403/index.php
ErrorDocument 404 /errors/404/index.php
ErrorDocument 500 /errors/500/index.php
# httpd sub entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /srv/www/virtual/fahnen-gaertner.com/shop/cgi-bin/
<Directory /srv/www/virtual/fahnen-gaertner.com/shop/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd sub entry cgi support END.
<Directory /srv/www/vhcs2/gui>
php_admin_value open_basedir "/srv/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/srv/www/virtual/:/tmp/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/tmp/"
</Directory>
# httpd sub entry PHP2 support BEGIN.
php_admin_value open_basedir "/srv/www/virtual/fahnen-gaertner.com/shop:/srv/www/virtual/fahnen-gaertner.com/shop/phptmp:/usr/share/php"
php_admin_value upload_tmp_dir "/srv/www/virtual/fahnen-gaertner.com/shop/phptmp"
php_admin_value session.save_path "/srv/www/virtual/fahnen-gaertner.com/shop/phptmp"
php_admin_value sendmail_path '/usr/sbin/sendmail -fvu2002 -t -i'
# httpd sub entry PHP2 support END.
<Directory /srv/www/virtual/fahnen-gaertner.com/shop/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [shop.fahnen-gaertner.com] sub entry END.
Hier wurde für die subdomain folgender Mountpoint definiert:
/htdocs/shop/fs2/shops/admin_admin
leider bekomme ich immer die Fehlermeldung:
You don't have permission to access / on this server.
Ich denke das liegt daran daß in der
<Directory> Direktive /shop/htdocs angegeben ist anstatt wie oben angegeben /htdocs/shop/fs2/shops/admin_admin
Wäre toll wenn mir da jemand ne gute Dokumentation nennen könnte oder mir sagen kann wie ich das Probleme behebe.
Gibt es irgend welche Variablen mit denen ich vhost abhängig daten eintragen lassen kann?
Beispiel:
# httpd [shop.fahnen-gaertner.com] sub entry BEGIN.
<VirtualHost 88.198.62.36:80>
#
#User vu2002
#Group vu2002
#
#
#SuexecUserGroup vu2002 vu2002
#
ServerAdmin root@fahnen-gaertner.com
DocumentRoot /srv/www/virtual/fahnen-gaertner.com/htdocs/shop/fs2/shops/admin_admin
ServerName shop.fahnen-gaertner.com
ServerAlias www.shop.fahnen-gaertner.com shop.fahnen-gaertner.com *.shop.fahnen-gaertner.com
ErrorLog /var/log/apache2/users/shop.fahnen-gaertner.com-error.log
TransferLog /var/log/apache2/users/shop.fahnen-gaertner.com-access.log
CustomLog /var/log/apache2/fahnen-gaertner.com-traf.log traff
CustomLog /var/log/apache2/fahnen-gaertner.com-combined.log combined
Alias /errors /srv/www/virtual/fahnen-gaertner.com/errors/
<Directory /srv/www/virtual/fahnen-gaertner.com/errors/>
php_admin_value open_basedir "/srv/www/virtual/fahnen-gaertner.com/errors/"
</Directory>
ErrorDocument 401 /errors/401/index.php
ErrorDocument 403 /errors/403/index.php
ErrorDocument 404 /errors/404/index.php
ErrorDocument 500 /errors/500/index.php
# httpd sub entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /srv/www/virtual/fahnen-gaertner.com/shop/cgi-bin/
<Directory /srv/www/virtual/fahnen-gaertner.com/shop/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd sub entry cgi support END.
<Directory /srv/www/vhcs2/gui>
php_admin_value open_basedir "/srv/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/srv/www/virtual/:/tmp/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/tmp/"
</Directory>
# httpd sub entry PHP2 support BEGIN.
php_admin_value open_basedir "/srv/www/virtual/fahnen-gaertner.com/shop:/srv/www/virtual/fahnen-gaertner.com/shop/phptmp:/usr/share/php"
php_admin_value upload_tmp_dir "/srv/www/virtual/fahnen-gaertner.com/shop/phptmp"
php_admin_value session.save_path "/srv/www/virtual/fahnen-gaertner.com/shop/phptmp"
php_admin_value sendmail_path '/usr/sbin/sendmail -fvu2002 -t -i'
# httpd sub entry PHP2 support END.
<Directory /srv/www/virtual/fahnen-gaertner.com/shop/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [shop.fahnen-gaertner.com] sub entry END.
Hier wurde für die subdomain folgender Mountpoint definiert:
/htdocs/shop/fs2/shops/admin_admin
leider bekomme ich immer die Fehlermeldung:
You don't have permission to access / on this server.
Ich denke das liegt daran daß in der
<Directory> Direktive /shop/htdocs angegeben ist anstatt wie oben angegeben /htdocs/shop/fs2/shops/admin_admin
Wäre toll wenn mir da jemand ne gute Dokumentation nennen könnte oder mir sagen kann wie ich das Probleme behebe.