Ich habe bei hosteurope.de ein Server mit Plesk, leider ist der Service von denen sowas
Von „Super“, nach dem Motto, Infos werden nur in verbindung mit kostenpflichtige Anfragen
gegeben.
Nun hoff e ich auf Eure Hilfe:[/b]
Es geht um die httpd.include, die Plesk ja bei jeder Änderung überschreibt.
Deswegen steht auch oben, man soll Änderungen in die vhost.conf vollziehen.
In die httpd.include sind viele <VirtualHost xx.234.57.xxx:80> abschnitte, in 2 musste ich was
Ändern z.B.
php_admin_flag safe_mode On in
php_admin_flag safe_mode Off
und der Path
php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/rxx/httpdocs:/tmp"
habe ich geändert.
Nun wie bekomme ich die Änderung in die vhost.conf, die ich frisch angelegt habe????????
Den ganzen <VirtualHost xx.234.57.xxx:80> block geht nicht, dann startet Apache nicht mehr.
Setze ich einfach
php_admin_flag safe_mode Off
weiß Apache gar nicht, für welchen <VirtualHost xx.234.57.xxx:80> block das gilt
Also wie??
Noch eine Frage:
Muss man die vhost.conf mit /usr/local/psa/admin/websrvmng -a –v einbinden?
Plesk überschreibt die httpd.include
Plesk überschreibt die httpd.include
Last edited by amiga1200 on 2009-02-05 17:50, edited 1 time in total.
Re: Plesx überschreibt die httpd.include
Wenn mehr als zwei (http und https) + Subdomains drin sind, ist Dein Plesk kaputt.amiga1200 wrote:In die httpd.include sind viele <VirtualHost xx.234.57.xxx:80> abschnitte
Rrrrichtig. Die vhost.conf wird innerhalb des <VirtualHost ...> Blocks für den HTTP (Port 80) VHost eingebunden (für HTTPS ist die vhost_ssl.conf zuständig). Wenn Du in der vhost.conf einen neuen virtuellen Host definierst, sind das verschachtelte virtuelle Hosts, und das versteht Apache nicht.amiga1200 wrote:Den ganzen <VirtualHost xx.234.57.xxx:80> block geht nicht, dann startet Apache nicht mehr.
Das ist ein Irrtum, da die vhost.conf wie bereits erwähnt innerhalb eines bestehenden virtuellen Hosts eingebunden wird. Allerdings gehören AFAIR die php_admin_flags innerhalb eines Directory-Blocks gesetzt...amiga1200 wrote:Setze ich einfach
php_admin_flag safe_mode Off
weiß Apache gar nicht, für welchen <VirtualHost xx.234.57.xxx:80> block das gilt
Früher musste man das, aber angeblich (ich nutze Pest schon länger nicht mehr) erkennt Plesk das mittlerweile von selbst.amiga1200 wrote:Muss man die vhost.conf mit /usr/local/psa/admin/websrvmng -a –v einbinden?
Re: Plesx überschreibt die httpd.include
vielen Dank schon mal für deine Hilfe,
hier meine http.include, so wie die läuft, bis Plesk die überschreibt.
was ich nicht verstehe
im Abschnitt
<VirtualHost x.20.xx.23:80>:
will ich php_admin_flag safe_mode on auf OFF ändern.
dazu schreibe ich in meiner vhost.conf
php_admin_flag OFF, (Richtig?) nach Apache restart holt sich das System die Info (oder nicht?)
Gilt das dann für alle <VirtualHost> blöcke?
denn in den anderen darf es auf ON bleiben.
und wenn ich den Path in Block <VirtualHost x.20.xx.23:80>: ändere
php_admin_value open_basedir "/srv/www/vhosts/winter.de/"
schreibe ich das in einer Zeile in vhost.conf??
woher weiß das system dann, für welchen Block <VirtualHost xxxx> die Änderungen gemeint ist?
denn in Block <VirtualHost x.20.xx.23:443> kann der Path ja anders sein,
oder muß er in jeden Block gleich sein??
--------------------------------------------------------------------------------------------------------------------------------------------------------
die 4 Änderungen sind Rot markiert
--------------------------------------------------------------------------------------------------------------------------------------------------------
# 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):
# /srv/www/vhosts/winter.de/conf/vhost.conf
# /srv/www/vhosts/winter.de/conf/vhost_ssl.conf
# /srv/www/vhosts/winter.de/subdomains/<subdomain-name>/conf/vhost.conf
<IfModule mod_ssl.c>
<VirtualHost x.20.xx.23:443>
ServerName winter.de:443
ServerAlias http://www.winter.de
UseCanonicalName Off
ServerAlias winter2.de
ServerAlias http://www.winter2.de
ServerAlias winter3.com
ServerAlias http://www.winter3.com
ServerAlias wintern.de
ServerAlias http://www.wintern.de
ServerAlias xn--winter-zubehr-ttt.de
ServerAlias http://www.xn--winter-zubehr-ttt.de
SuexecUserGroup xxx456 xx5
ServerAdmin sommer@sommer.de
DocumentRoot /srv/www/vhosts/winter.de/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_ssl_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /srv/www/vhosts/winter.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/cgi-bin/
Alias /plesk-stat /srv/www/vhosts/winter.de/statistics/
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /srv/www/vhosts/winter.de/statistics/webstat
Alias /webstat-ssl /srv/www/vhosts/winter.de/statistics/webstat-ssl
Alias /ftpstat /srv/www/vhosts/winter.de/statistics/ftpstat
Alias /anon_ftpstat /srv/www/vhosts/winter.de/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/apache2/icons/awstats/icon
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-r0IIYf
<Directory /srv/www/vhosts/winter.de/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
<Directory /srv/www/vhosts/winter.de/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory "/srv/www/vhosts/winter.de/statistics">
AuthType Basic
AuthName "Domainstatistiken"
AuthUserFile /srv/www/vhosts/winter.de/pd/d..httpdocs@plesk-stat
require valid-user
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost x.20.xx.23:80>
ServerName winter.de:80
ServerAlias http://www.winter.de
UseCanonicalName Off
ServerAlias winter2.de
ServerAlias http://www.winter2.de
ServerAlias winter3.com
ServerAlias http://www.winter3.com
ServerAlias wintern.de
ServerAlias http://www.wintern.de
ServerAlias xn--winter-zubehr-t3b.de
ServerAlias http://www.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /srv/www/vhosts/winter.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/cgi-bin/
Redirect permanent /plesk-stat https://winter.de/plesk-stat
Redirect permanent /webstat https://winter.de/webstat
Redirect permanent /webstat-ssl https://winter.de/webstat-ssl
Redirect permanent /ftpstat https://winter.de/ftpstat
Redirect permanent /anon_ftpstat https://winter.de/anon_ftpstat
Redirect permanent /awstats-icon https://winter.de/awstats-icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /srv/www/vhosts/winter.de/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
<Directory /srv/www/vhosts/winter.de/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost x.20.xx.23:443>
ServerName cms.winter.de:443
ServerAlias cms.winter2.de
ServerAlias cms.winter3.com
ServerAlias cms.wintern.de
ServerAlias cms.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/subdomains/cms/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_ssl_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/subdomains/cms/cgi-bin/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-r0IIYf
<Directory /srv/www/vhosts/winter.de/subdomains/cms/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost x.20.xx.23:80>
ServerName cms.winter.de:80
ServerAlias cms.winter2.de
ServerAlias cms.winter3.com
ServerAlias cms.wintern.de
ServerAlias cms.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/subdomains/cms/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log_2
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/subdomains/cms/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /srv/www/vhosts/winter.de/subdomains/cms/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode Off #GEÄNDERT
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode Off #GEÄNDERT
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/" #GEÄNDERT
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
</VirtualHost>
hier meine http.include, so wie die läuft, bis Plesk die überschreibt.
was ich nicht verstehe
im Abschnitt
<VirtualHost x.20.xx.23:80>:
will ich php_admin_flag safe_mode on auf OFF ändern.
dazu schreibe ich in meiner vhost.conf
php_admin_flag OFF, (Richtig?) nach Apache restart holt sich das System die Info (oder nicht?)
Gilt das dann für alle <VirtualHost> blöcke?
denn in den anderen darf es auf ON bleiben.
und wenn ich den Path in Block <VirtualHost x.20.xx.23:80>: ändere
php_admin_value open_basedir "/srv/www/vhosts/winter.de/"
schreibe ich das in einer Zeile in vhost.conf??
woher weiß das system dann, für welchen Block <VirtualHost xxxx> die Änderungen gemeint ist?
denn in Block <VirtualHost x.20.xx.23:443> kann der Path ja anders sein,
oder muß er in jeden Block gleich sein??
--------------------------------------------------------------------------------------------------------------------------------------------------------
die 4 Änderungen sind Rot markiert
--------------------------------------------------------------------------------------------------------------------------------------------------------
# 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):
# /srv/www/vhosts/winter.de/conf/vhost.conf
# /srv/www/vhosts/winter.de/conf/vhost_ssl.conf
# /srv/www/vhosts/winter.de/subdomains/<subdomain-name>/conf/vhost.conf
<IfModule mod_ssl.c>
<VirtualHost x.20.xx.23:443>
ServerName winter.de:443
ServerAlias http://www.winter.de
UseCanonicalName Off
ServerAlias winter2.de
ServerAlias http://www.winter2.de
ServerAlias winter3.com
ServerAlias http://www.winter3.com
ServerAlias wintern.de
ServerAlias http://www.wintern.de
ServerAlias xn--winter-zubehr-ttt.de
ServerAlias http://www.xn--winter-zubehr-ttt.de
SuexecUserGroup xxx456 xx5
ServerAdmin sommer@sommer.de
DocumentRoot /srv/www/vhosts/winter.de/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_ssl_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /srv/www/vhosts/winter.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/cgi-bin/
Alias /plesk-stat /srv/www/vhosts/winter.de/statistics/
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /srv/www/vhosts/winter.de/statistics/webstat
Alias /webstat-ssl /srv/www/vhosts/winter.de/statistics/webstat-ssl
Alias /ftpstat /srv/www/vhosts/winter.de/statistics/ftpstat
Alias /anon_ftpstat /srv/www/vhosts/winter.de/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/apache2/icons/awstats/icon
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-r0IIYf
<Directory /srv/www/vhosts/winter.de/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
<Directory /srv/www/vhosts/winter.de/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory "/srv/www/vhosts/winter.de/statistics">
AuthType Basic
AuthName "Domainstatistiken"
AuthUserFile /srv/www/vhosts/winter.de/pd/d..httpdocs@plesk-stat
require valid-user
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost x.20.xx.23:80>
ServerName winter.de:80
ServerAlias http://www.winter.de
UseCanonicalName Off
ServerAlias winter2.de
ServerAlias http://www.winter2.de
ServerAlias winter3.com
ServerAlias http://www.winter3.com
ServerAlias wintern.de
ServerAlias http://www.wintern.de
ServerAlias xn--winter-zubehr-t3b.de
ServerAlias http://www.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /srv/www/vhosts/winter.de/web_users
</IfModule>
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/cgi-bin/
Redirect permanent /plesk-stat https://winter.de/plesk-stat
Redirect permanent /webstat https://winter.de/webstat
Redirect permanent /webstat-ssl https://winter.de/webstat-ssl
Redirect permanent /ftpstat https://winter.de/ftpstat
Redirect permanent /anon_ftpstat https://winter.de/anon_ftpstat
Redirect permanent /awstats-icon https://winter.de/awstats-icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /srv/www/vhosts/winter.de/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
<Directory /srv/www/vhosts/winter.de/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost x.20.xx.23:443>
ServerName cms.winter.de:443
ServerAlias cms.winter2.de
ServerAlias cms.winter3.com
ServerAlias cms.wintern.de
ServerAlias cms.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/subdomains/cms/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_ssl_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/subdomains/cms/cgi-bin/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-r0IIYf
<Directory /srv/www/vhosts/winter.de/subdomains/cms/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost x.20.xx.23:80>
ServerName cms.winter.de:80
ServerAlias cms.winter2.de
ServerAlias cms.winter3.com
ServerAlias cms.wintern.de
ServerAlias cms.xn--winter-zubehr-t3b.de
SuexecUserGroup hdb234 psacln
ServerAdmin "sommer@sommer.de"
DocumentRoot /srv/www/vhosts/winter.de/subdomains/cms/httpdocs
CustomLog /srv/www/vhosts/winter.de/statistics/logs/access_log plesklog
ErrorLog /srv/www/vhosts/winter.de/statistics/logs/error_log_2
ScriptAlias /cgi-bin/ /srv/www/vhosts/winter.de/subdomains/cms/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /srv/www/vhosts/winter.de/subdomains/cms/httpdocs>
<IfModule mod_perl.c>
<Files ~ (.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode Off #GEÄNDERT
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/httpdocs:/tmp" #GEÄNDERT
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode Off #GEÄNDERT
# php_admin_value open_basedir "/srv/www/vhosts/winter.de/subdomains/cms/httpdocs:/tmp"
php_admin_value open_basedir "/srv/www/vhosts/winter.de/" #GEÄNDERT
</IfModule>
<IfModule mod_python.c>
<Files ~ (.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
</VirtualHost>
Re: Plesk überschreibt die httpd.include
Hallo,
irgend raff ich das nicht.
das Verzeichnis für die subdomains ist Leer
z.B. /srv/www/vhosts/winter.de/subdomains/cms/conf
Ich habe also eine Datei vhost.conf
in srv/www/vhosts/winter.de/conf
angelegt, mit 2 Zeilen
php_admin_flag safe_mode Off
php_admin_value open_basedir "/srv/www/vhosts/winter/"
und mit /usr/local/psa/admin/bin/websrvmng Plesx neu gestartet, so das die httpd.include überschrieben wird
dann Apache neu gestartet, aber die vhost.conf mit den 2 Befehle werden nicht angenommen,
natürlich habe die vhost.conf auch mal nach /srv/www/vhosts/winter.de/subdomains/cms/conf
kopiert
und umbenannt in vhost_ssl.conf
Aber es ist nicht zu machen.
Es ist Plesk 8.6
irgend raff ich das nicht.
das Verzeichnis für die subdomains ist Leer
z.B. /srv/www/vhosts/winter.de/subdomains/cms/conf
Ich habe also eine Datei vhost.conf
in srv/www/vhosts/winter.de/conf
angelegt, mit 2 Zeilen
php_admin_flag safe_mode Off
php_admin_value open_basedir "/srv/www/vhosts/winter/"
und mit /usr/local/psa/admin/bin/websrvmng Plesx neu gestartet, so das die httpd.include überschrieben wird
dann Apache neu gestartet, aber die vhost.conf mit den 2 Befehle werden nicht angenommen,
natürlich habe die vhost.conf auch mal nach /srv/www/vhosts/winter.de/subdomains/cms/conf
kopiert
und umbenannt in vhost_ssl.conf
Aber es ist nicht zu machen.
Es ist Plesk 8.6
Last edited by amiga1200 on 2009-02-06 20:56, edited 1 time in total.
Re: Plesk überschreibt die httpd.include
Code: Select all
<Directory /srv/www/vhosts/domain.tld/subdomains/subdomain/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine off
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/domain.tld/subdomains/subdomain/httpdocs:/tmp"
</IfModule>
</Directory>
<IfModule sapi_apache2.c> ist doch auch im oberen Bereich zu finden.
Eigentlich müsste darüber noch sowas wie
Code: Select all
<VirtualHost 87.230.17.120:80>
ServerName redaktion.hausderbriefmarke.de:80
Aber dann gibt es ein Fehler von Apache beim restart.
-> Include /srv/www/vhosts/domain.tld/subdomains/subdomain/conf/vhost.conf
sollte vor dem:
</VirtualHost>
in der httpd.include einfügt werden.
wie meins Du das?
in die httpd.include soll man ja nichts einfügen, weil die von Plesk überschrieben wird
"Wird denn auch der Include der Subdomain in die httpd.include geschrieben?"
wie meinst du das?
PS:
wenn ich müll in die vhost.conf schreibe, bekomme ich von Apache eine Fehlermeldung, also zieht sich das Systen die vhost.conf !
Re: Plesk überschreibt die httpd.include
Das war es.
Vielen Dank für Deine Hilfe
Vielen Dank für Deine Hilfe
