Ich habe mir schon einige Sachen über mein vhost Problem angeschaut, Foren durchsucht und
auch das Google Orakel befragt. Leider komme ich nicht weiter.
Mein Problem:
Ich habe eine bestens funktionierende Django Installation auf meinem VServer ( Debian4,Plesk8, Apache2). Für RichText Funktionalität benutze ich TinyMCE und da gibt es ein Plugin um Bilder zu verwalten ( ibrowser), das PHP benutzt.
Nun setzt Django auf Python auf und weill mir das Plugin immer als Datei anbieten und nicht vom Webserver ausführen lassen. Ich habe einen media Ordner für mein Projekt indem cass Sachen und Bilder liegen, auch andere Projektspezifische Daten, eben auch der TinyMCE. Und für Diesen Ordner muss ich PHP ans Laufen bekommen.
In der vhost.conf habe ich alles probiert, was mir einfällt und was ich verstehe. Ich habs auch mit einer .htaccess Datei probiert.
Folgendermassen schauts aus:
HttpdOrdner: /media/tinymce/plugins/….
Vhost.conf:
- Code: Select all
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE rathaus.settings
PythonDebug On
</Location>
<LocationMatch "\.(php)$">
SetHandler None
</LocationMatch>
<Location /media/>
SetHandler None
</Location>
<Location /adminmedia/>
SetHandler None
</Location>
<LocationMatch "/media/*.js">
SetHandler None
</LocationMatch>
Httpd.include:
- Code: Select all
<VirtualHost *someip*:80>
ServerName *domain*:80
ServerAdmin "someone@bla.bla"
DocumentRoot /var/www/vhosts/*domain*/httpdocs
CustomLog /var/www/vhosts/*domain*/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/*domain*/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/*domain*/web_users
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/*domain*/httpdocs>
Options FollowSymlinks Indexes
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/*domain*/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Include /var/www/vhosts/*domain*/conf/vhost.conf
</VirtualHost>
Wäre super wenn Ihr mir weiterhelfen könnt, ich blicke es einfach nicht
Gruß
Tobi