» can WSGI get the full URL rather than simply : environ[SERVER_NAME] ?.. if so.. Mod_Rewrite alternative?
can WSGI get the full URL rather than simply : environ[SERVER_NAME] ?.. if so.. Mod_Rewrite alternative?
|September 18, 2014
Posted by forumadmin
can get the domain name. such as..
but can it also get..
if that is possible.. then can this somehow replace.. mod rewrite and do something like this..
suppose the url is
we split this at
and then if it starts with 0 it must be something that we are looking for..
use the number after ‘0’
to pull out variable content.
can this replace mod_rewrite ?
i do not like touching mod_rewrite due to complex stuff of regex..
More Related Questions
- WSGI : environ[QUERY_STRING] parse something without a question mark? Suppose the url is:
This is the script:
def application(environ, start_response):
a = environ['QUERY_STRING']
start_response('200 OK', [('Content-Type', […]
- Main and beta WSGI apps OK, so I've been looking around for hours and this has me stumped.
I have an app not yet in production, and my client wants it to split into less stable and more stable. So, I elected to […]
- What is the difference between mod_wsgi and uwsgi? There seems to be mod_wsgi module in Apache and uwsgi module in Nginx. And there also seems to be the wsgi protocol and uwsgi protocol.
I have the following questions.
Are mod_wsgi and […]
- How Python web frameworks, WSGI and CGI fit together I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess:
- In production, Apache + mod_wsgi or Nginx + mod_wsgi? What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?
Which combination will need more memory and CPU time?
Which one is faster?
Which is known […]
- mod_wsgi, mod_python, or just cgi? I've been playing around with my own webserver (Apache+Ubuntu) and python. From what I've seen there are 3(?) main ways of doing this:
Apache configured to handle .py as cgi
- django 1.6.5 + python3 wsgi problems When I try to run my django project as a wsgi application, I get the following error in my app's error log:
Exception ignored in: <module 'threading' from […]
- Apache mod_wsgi: PermissionError when trying to access a page Trying to get Django running on this Apache box, using Python 3.3
httpd starts without fault but as soon as I try to access localhost, I am thrown a 500 error. The Apache logs say […]
- Django project doesnt show up with Apache and mod_wsgi I've installed Apache and mod_wsgi on windows xp service pack 3 and added these line to my httpd.conf :
WSGIScriptAlias / "C:/Documents and Settings/X/My […]
- Pyramid – apache + mod_wsgi or nginx +uwisgi or nginx +pserve + supervisord I have used Pyramid on Apache + mod_wsgi in the past. While looking at pyramid deployment notes came across nginx + pserve config […]