Score:0

Apache rewrite url in wsgi site

gu flag

This is my apache site with wsgi application. What I need is add string "Auth_Basic" between last slashes in the request. Request can be different anytime. Example:

http://127.0.0.1/asd/lala/app

-->

http://127.0.0.1/asd/lala/Auth_Basic/app
<VirtualHost *:11168>
    ServerName localhost

    LogLevel rewrite:trace8
    WSGIProcessGroup axess_app

    RewriteRule ^(.*\/[^\/]+\/)([^\/]+\/?)$ $1Auth_Basic/$2 [L]
    WSGIScriptAlias / /opt/app/parts/mod_wsgi_app/wsgi
    SetEnv is_app_pipeline True

combined
</VirtualHost>

There is problem with non-existing document_root /var/www/html and I am getting code 404 go-ahead with /var/www/html/asd/lala/Auth_Basic/app [OK]

I need to do it on this site, I can´t use another nginx/apache in the flow before this site. How to make rewrite rule working beside the wsgi script ?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.