Thread: add web site
View Single Post
  #8  
Old 29th March 2008, 18:03
serr57 serr57 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hello

Here is the result

######################################
# Vhost: www.serr-fr.net:80
######################################
#
#
<VirtualHost 92.89.69.10:80>
ServerName www.serr-fr.net:80
ServerAdmin webmaster@serr-fr.net
DocumentRoot /srv/www/web6/web
ServerAlias serr-fr.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /srv/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /srv/www/web6/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/srv/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
</VirtualHost>

When I type www.serr-fr.net

I have only the option to download the php file

thx

Eric