-3

I am trying to run python on main domain and a wordpress blog in sub-directory. Is it possible to do so?

Currently the they are running good in sub-domains i.e http://main-domain.com and blog.main-domain.com

but i read that from SEOs point of view it is better to have it like http://main-domain.com/blog

I am using nginx as the server. Can anyone point me in the right direction?

2
  • You do realize that python isn't the name of a language, not a server or web framework, right? Most of your question makes no sense. Is it a CGI server? FCGI? WSGI? What actual frameworks are you using? That having been said, I've figured out what you probably meant, and yes, it is possible. Jul 31 '15 at 15:33
  • I am sorry that i didn't make it clear. I am running a website built with django using gunicorn with fcgi.
    – Tarun
    Jul 31 '15 at 16:41
0

You'd use the nginx location directive, as is done in this example of reverse-proxying a flask application.

In fact, even for the same location (as in that example), you can use try_files to check a bunch of locations in order, and then serve up a 50x message. It's pretty nice.

I can't give you more specific details, because you have told me very, very little about your actual setup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.