Jump to content
The Uniform Server Community
MrBertie

Having trouble with Proxy settings in a Virtual Host

Recommended Posts

I've almost got Dekiwiki functioning on Uniform Server, apart from one thing... I can't get the proxy module to work correctly. I have created a new virtual host in httpd.conf as follows:

 

-----------------------------------

<VirtualHost *>

ServerName dekiwiki

DocumentRoot /www/web

 

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/$

RewriteRule ^/$ /index.php?title= [L,NE]

 

RewriteCond %{REQUEST_URI} !/(@api|editor|skins|config)/

RewriteCond %{REQUEST_URI} !/(redirect|texvc|index|Version).php

RewriteCond %{REQUEST_URI} !/error/(40(1|3|4)|500).html

RewriteCond %{REQUEST_URI} !/favicon.ico

RewriteCond %{REQUEST_URI} !/robots.txt

RewriteCond %{REQUEST_URI} !/dummy.php

RewriteCond %{REQUEST_URI} !/phpinfo.php

RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search

RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]

 

ProxyPass /@api http://localhost:8081 retry=1

ProxyPassReverse /@api http://localhost:8081

SetEnv force-proxy-request-1.0 1

SetEnv proxy-nokeepalive 1

 

AllowEncodedSlashes On

</VirtualHost>

-------------------------------------

 

By commenting and uncommenting lines I can see that the problem lies with the ProxyPass directives. If I uncomment them the apache server will not start.

 

As mentioned on another thread Installing Dekiwiki... I've now managed to install the correct mod_proxy module and enable them in apache2. But despite searching these forum, Dekiwiki's forums and elsewhere I'm thoroughly stuck!

Does anyone know where next to look?

Share this post


Link to post
Share on other sites

Finally...it seems that the offending line is the retry=1 after the ProxyPass statement. Uniform Server is still using Apache 2.0.59, which does not recognise this argument. Once I remove that then server fires up.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...