vhost.con

Plesk, Confixx, Froxlor, SysCP, SeCoTo, IspCP, etc.
Post Reply
][schlumpf][
Posts: 19
Joined: 2006-07-02 20:58

vhost.con

Post by ][schlumpf][ »

Hi, ja ich habe google und die oren suche Benutze aber ich komme einfach nicht weiter bze mein server ärgert mich.

Ich möchte gerne local für eine Domain z.b.
php_admin_flag register_global off
haben.

Hier in diesem Pfad
/srv/www/vhosts/meine-domain.de/conf
Habe ich die vhost.con und die httpd.include.

Meine httpd.include sieht so aus

Code: Select all

# 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/dead-or-live.de/conf/vhost.conf
# /srv/www/vhosts/dead-or-live.de/subdomains/<subdomain-name>/conf/vhost.conf

<VirtualHost 85.114.132.64:80>
Include /srv/www/vhosts/dead-or-live.de/conf/vhost.conf
	ServerName   dead-or-live.de:80
	ServerAlias  www.dead-or-live.de
	UseCanonicalName Off
	SuexecUserGroup         web0 psacln
	ServerAdmin  "admin@dead-or-live.de"
	DocumentRoot /srv/www/vhosts/dead-or-live.de/httpdocs
	CustomLog  /srv/www/vhosts/dead-or-live.de/statistics/logs/access_log plesklog
	ErrorLog   /srv/www/vhosts/dead-or-live.de/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /srv/www/vhosts/dead-or-live.de/web_users
</IfModule>
	ScriptAlias  /cgi-bin/ /srv/www/vhosts/dead-or-live.de/cgi-bin/
	Alias  /plesk-stat /srv/www/vhosts/dead-or-live.de/statistics/
	<Location  /plesk-stat/>
		Options +Indexes
	</Location>
	<Location  /plesk-stat/logs/>
		Require valid-user
	</Location>
	Alias  /webstat /srv/www/vhosts/dead-or-live.de/statistics/webstat
	Alias  /webstat-ssl /srv/www/vhosts/dead-or-live.de/statistics/webstat-ssl
	Alias  /ftpstat /srv/www/vhosts/dead-or-live.de/statistics/ftpstat
	Alias  /anon_ftpstat /srv/www/vhosts/dead-or-live.de/statistics/anon_ftpstat
	Alias  /awstats-icon /usr/share/apache2/icons/awstats/icon
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /srv/www/vhosts/dead-or-live.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_perl.c>
	<Files ~ (.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</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/dead-or-live.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/dead-or-live.de/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
	<IfModule mod_fcgid.c>
		AddHandler fcgid-script .fcgi
		Options +FollowSymLinks +ExecCGI
	</IfModule>
		Options +Includes +ExecCGI
	</Directory>
	<Directory /srv/www/vhosts/dead-or-live.de/web_users/lala>
		Options +Includes +ExecCGI
		AddHandler cgi-script .cgi
	<IfModule mod_perl.c>
	<Files ~ (.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</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/dead-or-live.de/web_users/lala:/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/dead-or-live.de/web_users/lala:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
	<IfModule mod_fcgid.c>
		AddHandler fcgid-script .fcgi
		Options +FollowSymLinks +ExecCGI
	</IfModule>
	</Directory>
	Alias "/error_docs" "/srv/www/vhosts/dead-or-live.de/error_docs"
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
	Include /srv/www/vhosts/dead-or-live.de/conf/vhost.conf
</VirtualHost>
die vhost.conf dieht so aus

Code: Select all

php_admin_flag register_global off
Aber register globals ist immer noch an was ist da falsch
User avatar
Joe User
Project Manager
Project Manager
Posts: 11193
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:

Re: vhost.con

Post by Joe User »

Code: Select all

php_admin_flag register_globals off
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
][schlumpf][
Posts: 19
Joined: 2006-07-02 20:58

Re: vhost.con

Post by ][schlumpf][ »

:oops: Stimmt das (s) fehlte, hätte ich selber sehen solln. Aber leider gehts damit auch nicht
twisterchen
Anbieter
Posts: 232
Joined: 2005-07-14 14:13

Re: vhost.con

Post by twisterchen »

In der vhost.conf

Code: Select all

<Directory  /home/httpd/vhosts/<domain>/subdomains/<name_sub>/httpdocs>
#php_admin_flag safe_mode off
php_admin_flag register_globals off
</Directory>
Indiana neustart bzw musst du drauf achten den Domain Manager auszuführen damit ein include Anweisung in der httpd.include geschrieben wird.
Alternativ kannst du auch einfach in Plesk unter der Domain bzw subdomain die Einstellungen einfach nochmal speichern bewirkt das gleiche.
mc5000
Posts: 308
Joined: 2004-06-17 11:56
Location: Köln

Re: vhost.con

Post by mc5000 »

@ ][Schlumpf][:
Nur zur Vollständigkeit :wink:

Den

Code: Select all

/usr/local/psa/admin/sbin/websrvmng -v -a
zur Aktualisierung aller Konfigurationsdateien unter Plesk kennst Du?
Post Reply