Pfadangaben bei vhost
Verfasst: Di 21. Jun 2011, 14:34
Hallo zusammen,
ich habe Contenido auf meinem lokalen Webserver auf den aktuellen Stand (4.8.15) gebracht. Auf meinem loakalen Webserver ist das Dokumentenroot /. Contenido selbst lag auf der Maschiene in /srv/nfsv4/webdevel/trapp. Dementsprechend waren die Pfade in der Datei contenido/includes/config.php
Nun wollte ich das CMS auf den Webserver übertragen um dort nochmal alles funktionell zu testen. Auf dem Webserver ist die Konfiguration etwas ander (VHOSTS). Die Konfiguration des vhost sieht nun so aus:
Wie muss ich die Pfade in der config.php und der Tabelle con_client nun anpassen?
Viele Grüße
pixel
ich habe Contenido auf meinem lokalen Webserver auf den aktuellen Stand (4.8.15) gebracht. Auf meinem loakalen Webserver ist das Dokumentenroot /. Contenido selbst lag auf der Maschiene in /srv/nfsv4/webdevel/trapp. Dementsprechend waren die Pfade in der Datei contenido/includes/config.php
Code: Alles auswählen
$cfg['path']['contenido'] = '/srv/nfsv4/webdevel/trapp/contenido/';
...
Code: Alles auswählen
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/testdomain.de/conf/vhost.conf
# /var/www/vhosts/testdomain.de/conf/vhost_ssl.conf
# /var/www/vhosts/testdomain.de/subdomains/<subdomain-name>/conf/vhost.conf
<IfModule mod_ssl.c>
<VirtualHost 62.75.220.38:443>
ServerName testdomain.de:443
ServerAlias www.testdomain.de
UseCanonicalName Off
SuexecUserGroup web12_1 psacln
ServerAdmin info@trappgmbh.de
DocumentRoot /var/www/vhosts/testdomain.de/httpsdocs
CustomLog /var/www/vhosts/testdomain.de/statistics/logs/access_ssl_log plesklog
ErrorLog /var/www/vhosts/testdomain.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/testdomain.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/testdomain.de/cgi-bin/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/certCJo8997
<Directory /var/www/vhosts/testdomain.de/httpsdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/testdomain.de/httpsdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/testdomain.de/httpsdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/testdomain.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost 62.75.220.38:80>
ServerName testdomain.de:80
ServerAlias www.testdomain.de
UseCanonicalName Off
SuexecUserGroup web12_1 psacln
ServerAdmin "info@trappgmbh.de"
DocumentRoot /var/www/vhosts/testdomain.de/httpdocs
CustomLog /var/www/vhosts/testdomain.de/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/testdomain.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/testdomain.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/testdomain.de/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/testdomain.de/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/testdomain.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/testdomain.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/testdomain.de/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
</VirtualHost>
Viele Grüße
pixel