rewrite url for cockpit team
This commit is contained in:
parent
c11ef55e2c
commit
f391fed20b
2 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,7 @@ var.socket_dir = home_dir + "/sockets"
|
||||||
server.modules = (
|
server.modules = (
|
||||||
"mod_access",
|
"mod_access",
|
||||||
"mod_setenv",
|
"mod_setenv",
|
||||||
|
"mod_redirect",
|
||||||
)
|
)
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -465,3 +466,5 @@ $HTTP["url"] =~ "\.log\.gz$" {
|
||||||
setenv.add-response-header = ( "Content-Encoding" => "gzip")
|
setenv.add-response-header = ( "Content-Encoding" => "gzip")
|
||||||
mimetype.assign = ("" => "text/plain" )
|
mimetype.assign = ("" => "text/plain" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
url.redirect = ( "^/results/sgallagh/cockpit-preview/(.+)" => "/results/@cockpit/cockpit-preview/$1" )
|
||||||
|
|
|
@ -24,5 +24,8 @@
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule ^/coprs/sgallagh/cockpit-preview/(.*)$ /coprs/g/cockpit/cockpit-preview/$1 [R=301]
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue