Hi,
I'm currently using a custom template to enable one user to bypass my varnish reverse proxy because he's backend control panel is getting some 503 issues. This is of course a temporary solution as varnish is getting some issues here.
Now a second user who is using some POST cmd to create a pdf is experiencing a 503 error.
When using the apache port 8080 (varnish is running on the same host, on port 80) the pdf shows up fine, and a download prompt is being summoned.
Now, until I get the time to fix these both things I want to make sure this user also is able to get the straight apache bypass as user A.
What I did:
Apache listens on: port yy.yy.yy.yy:8080 (global) and xx.xx.xx.xx:80 for user A
Varnish listens on yy.yy.yy.yy:80
As a custom template I inserted the following to make directadmin rewrite properly:
What I want to do is use a second username to be in the list to make sure his config will be rewritten properly too (thus: |IP|:80 instead of |IP|:8080)
And assign the ip xx.xx.xx.xx to this users too.
Anyone who can help me out?
What is this *if *else *endif thing directadmin is using to rewrite? I tried common bash stuff to try to get it to if elseif end and so on, but nothing seems to work.
I'm currently using a custom template to enable one user to bypass my varnish reverse proxy because he's backend control panel is getting some 503 issues. This is of course a temporary solution as varnish is getting some issues here.
Now a second user who is using some POST cmd to create a pdf is experiencing a 503 error.
When using the apache port 8080 (varnish is running on the same host, on port 80) the pdf shows up fine, and a download prompt is being summoned.
Now, until I get the time to fix these both things I want to make sure this user also is able to get the straight apache bypass as user A.
What I did:
Apache listens on: port yy.yy.yy.yy:8080 (global) and xx.xx.xx.xx:80 for user A
Varnish listens on yy.yy.yy.yy:80
As a custom template I inserted the following to make directadmin rewrite properly:
Code:
|*if USER="username"|
<VirtualHost |IP|:80 |MULTI_IP|>
|*else|
<VirtualHost |IP|:8080 |MULTI_IP|>
|*endif|
What I want to do is use a second username to be in the list to make sure his config will be rewritten properly too (thus: |IP|:80 instead of |IP|:8080)
And assign the ip xx.xx.xx.xx to this users too.
Anyone who can help me out?
What is this *if *else *endif thing directadmin is using to rewrite? I tried common bash stuff to try to get it to if elseif end and so on, but nothing seems to work.