RE: Only first Redirect recipe works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I guess I am missing why you are structure your redirect like that at all.
My way would be:

<VirtualHost *:80>
    ServerName FuMP.mydomain.com
    RewriteEngine On
    LogLevel debug rewrite:trace3
    Redirect /foo https://urldefense.proofpoint.com/v2/url?u=http-3A__google.com&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=3TctdLDPED0ERBQZ3cNsM0AYvCB5fPtT1PHAHf8Effc&e= 
    Redirect /bar https://urldefense.proofpoint.com/v2/url?u=http-3A__cnn.com&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=HcW4Ig94G6-5hpMr_3X2Il6VyEmFGlXNopSkqrqNjA0&e= 
</VirtualHost>

# https://urldefense.proofpoint.com/v2/url?u=http-3A__FuMP.mydomain.com_bar&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=EIQGGbVRpT8emJVUamtk_ulmMEEHzgb_kmwrA1kSo8E&e= 
<VirtualHost *:80>
ServerName FuMP.mydomain.com
RewriteEngine On
LogLevel debug rewrite:trace3
Redirect /bar https://urldefense.proofpoint.com/v2/url?u=http-3A__cnn.com&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=HcW4Ig94G6-5hpMr_3X2Il6VyEmFGlXNopSkqrqNjA0&e= 
</VirtualHost>

Darryl Baker
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
darryl.baker@xxxxxxxxxxxxxxxx
(847) 467-6674

-----Original Message-----
From: Eric Smith [mailto:eric@xxxxxxxxxxxx] 
Sent: August 18, 2017 5:56 AM
To: users@xxxxxxxxxxxxxxxx
Subject:  Only first Redirect recipe works

Hi 

I have the following Redirects defined:

# https://urldefense.proofpoint.com/v2/url?u=http-3A__FuMP.mydomain.com_foo&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=LGMPXnJQQtCWMBeWTuFUwdj6cARbeur9WOMSP7Ks5n4&e= 
<VirtualHost *:80>
ServerName FuMP.mydomain.com
RewriteEngine On
LogLevel debug rewrite:trace3
Redirect /foo https://urldefense.proofpoint.com/v2/url?u=http-3A__google.com&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=3TctdLDPED0ERBQZ3cNsM0AYvCB5fPtT1PHAHf8Effc&e= 
</VirtualHost>

# https://urldefense.proofpoint.com/v2/url?u=http-3A__FuMP.mydomain.com_bar&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=EIQGGbVRpT8emJVUamtk_ulmMEEHzgb_kmwrA1kSo8E&e= 
<VirtualHost *:80>
ServerName FuMP.mydomain.com
RewriteEngine On
LogLevel debug rewrite:trace3
Redirect /bar https://urldefense.proofpoint.com/v2/url?u=http-3A__cnn.com&d=DwIBAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=tdje61_VHSXp608oLofeaJnnzo2Sr9_Cdcp70bBEtQ8&m=QBd7YCX9bAJFVNtLDzmiUQ2VDKphpjALwcB_JJdu_Xk&s=HcW4Ig94G6-5hpMr_3X2Il6VyEmFGlXNopSkqrqNjA0&e= 
</VirtualHost>

Now, whichever recipe is defined first, works and the second reports the following in the logs:
`File does not exist: /var/www/html/bar '

How may I resolve this issue?

Thanks


Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux