hey thanks thanks, but now i have 500 Internal Server Error. What i now 
have is: 

a folder 'apache' next to my django project folder. Apache folder has: 
apache_django_wsgi.conf, myproject.wsgi, __init__.py, urls_production.py, 
settings_production.py

and in httpd.conf i have this (stahlhandel is my djangoproject): 

<VirtualHost 85.114.145.142:80>
    RewriteEngine On
    RewriteLog          /usr/local/httpd/logs/rewrite.log
    RewriteLogLevel     2
    RewriteMap          low     int:tolower
    RewriteMap          subdom  txt:/usr/local/httpd/conf/subdomains.lst
    RewriteCond         ${subdom:%{HTTP_HOST}}  ^(/.*)$
    RewriteRule         ^/(.*)$   %1/$1 [E=SUBDOM:${low:%{HTTP_HOST}}]
    DocumentRoot /usr/local/httpd/htdocs/admin
    Servername admin.afect.stahlbaron.de
</VirtualHost>

<VirtualHost 85.114.145.142:80>
    ServerAdmin webmaster
    Servername afect.stahlbaron.de
    Serveralias www.afect.stahlbaron.de
    DocumentRoot /usr/local/httpd/vhtdocs/stahlbaron/stahlhandel
    SuexecUserGroup stahlbaron stahlbaron
    ScriptAlias /cgi-bin/ /usr/local/httpd/vhtdocs/stahlbaron/cgi-bin/
    WSGIScriptAlias / 
/www/vhtdocs/stahlbaron/stahlhandel/apache/lastsite.wsgi
<Directory />
    Options SymLinksIfOwnerMatch Indexes
    AllowOverride AuthConfig
    Allow from all
</Directory>

<Directory /usr/local/httpd/vhtdocs/stahlbaron/stahlhandel/apache/>
Order deny,allow
Allow from all
</Directory>

  ScriptAlias /php/ /usr/local/httpd/conf/php/stahlbaron.de/
  AddHandler php-cgi .php
  Action php-cgi /php/php.cgi
# DocumentRoot /usr/local/httpd/htdocs/
   # Servername afect.stahlbaron.de
</VirtualHost>

can it be that i am missing <Location /> tag or is it here not relevant? 

thanks 


Am Freitag, 11. Mai 2012 16:21:10 UTC+2 schrieb Bolkin:
>
> Sorry, supposed to be on different lines:
> <Directory /usr/local/httpd/vhtdocs/stahlbaron_dj/apache/ > 
>    Order deny,allow 
>    Allow from all 
> </Directory>
>
> On Friday, May 11, 2012 10:19:24 AM UTC-4, Bolkin wrote:
>>
>> It looks close enough, but try commenting out other virtual hosts to 
>> reduce noise, and also comment out:
>>
>> #DocumentRoot /usr/local/httpd/vhtdocs/stahlbaron/
>>
>> You might need to add:
>>
>> <Directory /usr/local/httpd/vhtdocs/stahlbaron_dj/apache/ > Order 
>> deny,allow Allow from all </Directory>
>>
>>
>> On Friday, May 11, 2012 7:25:59 AM UTC-4, doniyor wrote:
>>>
>>> i solved this, but not all. now i see the folders and files downloadable 
>>> in browser instead of a webpage. Why is this? 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/hoza4E7Err8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to