librelist archives

« back to archive

apache question

apache question

From:
Chengi Liu
Date:
2013-03-07 @ 20:28
Hi,


  Thanks for all the help.
SO I am about to deploy using apache .
Under sites-enabled.. I added this new conf called app
and wrote the configuration..
Then exited the editor
and tried to do..
sudo a2ensite app
it didnt found app??
when i pressed for option [using tab], i could see default...
Do i need to put this conf at some other place as well?
Thanks

Re: [flask] apache question

From:
Mark Grey
Date:
2013-03-07 @ 20:33
Hi chengi,

What's your distro?  I know on debian based ones, you should put it in
/etc/apache2/sites-available and then it will come up for the a2ensite
command.

Also, did you enable mod_wsgi?  This is required to run python wsgi apps in
Apache.

http://flask.pocoo.org/docs/deploying/mod_wsgi/

On Thu, Mar 7, 2013 at 3:28 PM, Chengi Liu <chengi.liu.86@gmail.com> wrote:

> Hi,
>
>
>   Thanks for all the help.
> SO I am about to deploy using apache .
> Under sites-enabled.. I added this new conf called app
> and wrote the configuration..
> Then exited the editor
> and tried to do..
> sudo a2ensite app
> it didnt found app??
> when i pressed for option [using tab], i could see default...
> Do i need to put this conf at some other place as well?
> Thanks
>

Re: [flask] apache question

From:
Chengi Liu
Date:
2013-03-07 @ 20:35
Yepp this was the error .. i put it in sites-enabled instead of
sites-available :)
it fixed the issue.
THanks


On Thu, Mar 7, 2013 at 12:33 PM, Mark Grey <mark.asperia@gmail.com> wrote:

> Hi chengi,
>
> What's your distro?  I know on debian based ones, you should put it in
> /etc/apache2/sites-available and then it will come up for the a2ensite
> command.
>
> Also, did you enable mod_wsgi?  This is required to run python wsgi apps
> in Apache.
>
> http://flask.pocoo.org/docs/deploying/mod_wsgi/
>
>
> On Thu, Mar 7, 2013 at 3:28 PM, Chengi Liu <chengi.liu.86@gmail.com>wrote:
>
>> Hi,
>>
>>
>>   Thanks for all the help.
>> SO I am about to deploy using apache .
>> Under sites-enabled.. I added this new conf called app
>> and wrote the configuration..
>> Then exited the editor
>> and tried to do..
>> sudo a2ensite app
>> it didnt found app??
>> when i pressed for option [using tab], i could see default...
>> Do i need to put this conf at some other place as well?
>> Thanks
>>
>
>