Alternatively, how are you trying to access the site?  If you're putting
"localhost" in your location bar, the stuff in the VirtualHost tag will
never be used.  It is only invoked when the request matches its ServerName
directive.  (On *nix systems, at least, you could add
booktype.clearerchannel.org as an additional alias for 127.0.0.1 in
/etc/hosts and then you will be able to use that in the browser's location
bar.)

On Sun, Mar 24, 2013 at 7:55 PM, Graham Dumpleton <
[email protected]> wrote:

> It is not enough to put it in sites-available directory. You then need to
> use a2ensite or equivalent script to enable that site file. This will
> create a symbolic link to it in the sites-enabled directory. Have you done
> that?
>
> Graham
>
>
> On 25 March 2013 04:11, Mick Fuzz <[email protected]> wrote:
>
>> Hi there,
>>
>> I'm a newbie to wsgi, making a transitions from php to django. Please
>> excuse the imprecise language
>>
>> I'm following the instructions here to install a django app. Debian
>> squeeze, apache 2.2.16, django 1.3, python 2.6.6
>>
>>
>> https://wiki.sourcefabric.org/display/Booktype/How+to+install+it+on+Debian#HowtoinstallitonDebian-DeployusingApache(recommended).1
>>
>> The instructions tell me to place a site in sites-available. The key
>> lines appear to be
>>
>> <VirtualHost *:80>
>>      ServerName booktype.clearerchannel.org
>>      SetEnv HTTP_HOST "booktype.clearerchannel.org"
>>      WSGIScriptAlias / /home/booktype/mybooktype/booki.wsgi
>>
>> My error is that I can see the flat apache-served files but not the
>> proper web interface.
>> By blind trial and error, I placed the   WSGIScriptAlias /
>> /home/booktype/mybooktype/booki.wsgi line before the <VirtualHost *:80> and
>> the site looked fine.
>> However, it took over all the other sites on the webserver too.
>>
>> Changing the line to
>> WSGIScriptAlias /home/booktype/mybooktype/
>> /home/booktype/mybooktype/booki.wsgi
>> doesn't help.
>>
>> The way the mod_vhosts_alias is is set up is via the following lines in
>> apache2.conf  (pasted at end of message)
>>
>> It would be great if anyone could let me know how to get this working
>> without breaking my other sites, or send me in the right direction for docs
>> to read.
>>
>> nice one
>> Mick
>>
>> <VirtualHost 209.234.253.19:80>
>>   UseCanonicalName    Off
>>   VirtualDocumentRoot /home/vhosts/%0
>>
>>   <Directory /home/vhosts>
>>         AllowOverride FileInfo AuthConfig Limit
>>         Options MultiViews Indexes FollowSymLinks IncludesNoExec
>>         <Limit GET POST OPTIONS PROPFIND>
>>                 Order allow,deny
>>                 Allow from all
>>         </Limit>
>>         <LimitExcept GET POST OPTIONS PROPFIND>
>>                Order deny,allow
>>                Deny from all
>>         </LimitExcept>
>>   </Directory>
>> </VirtualHost>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to