Deploy my Django site and Apache with mod_wsgi_express

瀏覽次數:23 次
跳到第一則未讀訊息

Daniel Leones

未讀,
2021年11月8日 下午5:06:322021/11/8
收件者:modwsgi
Hi,

I need some assistance. I have a website which I need to deploy and I have not worked with Apache before.

I developed this website using Django 3.2 with a database and I dockerized. The issue is the hosting provider only provides Apache in shared way, I mean, I just have a folder to put the website files and there configure some files. I just have the idea to write a `.htaccess` file.

I know `mod_wsgi_express` can ease some details and tie my webapp with Apache.

How can do this?

Is it possible to use this shared Apache along with my dockerized app? How?

Thanks,
Daniel

Graham Dumpleton

未讀,
2021年11月8日 下午5:34:342021/11/8
收件者:mod...@googlegroups.com
Cheap web hosting providers who only give you a directory to put stuff in are designed for running PHP applications and it isn't possible to use mod_wsgi with them as part of the common Apache instance as it isn't safe to use mod_wsgi in such shared virtual hosting providers with the way they do things.

If they provide a way of running separate long lived services (which is highly unlikely), then you might be able to use mod_wsgi-express to run a separate Apache/mod_wsgi instance, but this is still dependent on them providing a way to setup up a proxy definition in the front end Apache. Usually this isn't possible since can't do it from a .htaccess file alone.

I would suggest you go look at a different hosting provider such as Heroku or Digital Ocean and get a more capable hosting system.

Graham

--
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 modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/02767043-b15f-4fa1-a863-d9f7b09ac50cn%40googlegroups.com.

Daniel Leones

未讀,
2021年11月8日 下午6:01:192021/11/8
收件者:modwsgi
Thank you very much Graham.
回覆所有人
回覆作者
轉寄
0 則新訊息