Httpd.conf Customization

aleborg

Verified User
Joined
Nov 30, 2003
Messages
87
I've added this for a customer in Httpd.conf Customization:
Code:
<Directory /home/web455/domains/ssssssss.nu/public_html>
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag display_errors   on
</Directory>

But it wont work, what's wrong? I've restarted Apache.
 
Code:
<VirtualHost 217.78.42.15:80>
<Directory /home/web455/domains/xxxxx.nu/public_html>
php_flag register_globals 0
php_flag magic_quotes_gpc 0
php_flag display_errors 1
</Directory>

	ServerName [url]www.xxxxx.nu[/url]
	ServerAlias [url]www.xxxxx.nu[/url] xxxxx.nu
	ServerAdmin [email][email protected][/email]
	DocumentRoot /home/web455/domains/xxxxx.nu/public_html
	ScriptAlias /cgi-bin/ /home/web455/domains/xxxxx.nu/public_html/cgi-bin/

	User web455
	Group web455
	CustomLog /var/log/httpd/domains/xxxxx.nu.bytes bytes
	CustomLog /var/log/httpd/domains/xxxxx.nu.log combined
	ErrorLog /var/log/httpd/domains/xxxxx.nu.error.log

	<Directory /home/web455/domains/xxxxx.nu/public_html>
		Options +Includes -Indexes
		php_flag engine on
		#php_admin_value safe_mode 1
	</Directory>




	#php_admin_value open_basedir /home/web455/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>
 
Hello,

How are you accessing the site?
domain.com/~username or domain.com ? (the ~username doesn't carry the virtualhost settings)

Create a php file with <?phpinfo();?> in it and checkout what it says. Also check for any .htaccess files that may be counteracting what you're doing.

John
 
Not sure. Maybe remove the flags from the <Directory>, just put them in the <VirtualHost> and see what happens.

John
 
Has also tried using this:
<Directory /home/web455/domains/kundservice.nu/public_html>
AllowOverride Options
</Directory>
and a .htaccess file but it won't work either.
 
Back
Top