Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache mass Virtualhost und php
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
swain
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2002
Posts: 136

PostPosted: Tue Oct 07, 2003 12:17 am    Post subject: apache mass Virtualhost und php Reply with quote

hi ihr,

ich habe vor meinen apache mit dem letzen beispiel aus Dynamically configured mass virtual hosting
zu versehen, für alle die zu faul sind zum klicken, hier das beispiel:

Code:
The vhost.map file contains something like this:

www.customer-1.com  /www/customers/1
www.customer-2.com  /www/customers/2
# ...
www.customer-N.com  /www/customers/N



The http.conf contains this:

RewriteEngine on

RewriteMap   lowercase  int:tolower

# define the map file
RewriteMap   vhost      txt:/www/conf/vhost.map

# deal with aliases as above
RewriteCond  %{REQUEST_URI}               !^/icons/
RewriteCond  %{REQUEST_URI}               !^/cgi-bin/
RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$
# this does the file-based remap
RewriteCond  ${vhost:%1}                  ^(/.*)$
RewriteRule  ^/(.*)$                      %1/docs/$1

RewriteCond  %{REQUEST_URI}               ^/cgi-bin/
RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$
RewriteCond  ${vhost:%1}                  ^(/.*)$
RewriteRule  ^/(.*)$                      %1/cgi-bin/$1



ist jemandem jetzt eine Möglichkeit bekannt ob und wenn ja, ich hier noch ein open_basedir von mod_php einbringen kann ohne .htaccess ?

Ich würde gerne mod_php verwenden und nicht php als cgi mit suexec weil auf dem Server nur Leute sind denen ich vertraue und das open_basedir nur "wild" gewordene Scripte oder absichtliche Manipulationen verhindern soll, ich kann ja nicht jedes script vorher testen bevor es auf den Server kommt....

Vielleicht findet das ja einer nicht verrückt und kann mir sogar helfen ...

Gruß

Swain
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum