Jgreen has submitted this change and it was merged. Change subject: tweak apache vhost conf for otrs ......................................................................
tweak apache vhost conf for otrs Change-Id: Ifad8ee254844a840434cff2ae7a39d74a9d6be1d --- M files/apache/sites/ticket.wikimedia.org 1 file changed, 14 insertions(+), 5 deletions(-) Approvals: Jgreen: Checked; Looks good to me, approved jenkins-bot: Verified diff --git a/files/apache/sites/ticket.wikimedia.org b/files/apache/sites/ticket.wikimedia.org index f765084..1a5650b 100644 --- a/files/apache/sites/ticket.wikimedia.org +++ b/files/apache/sites/ticket.wikimedia.org @@ -16,6 +16,7 @@ # https://ticket.wikimedia.org <VirtualHost *:443> ServerName ticket.wikimedia.org + ServerAlias iodine.wikimedia.org SSLEngine On SSLProtocol -ALL +SSLv3 +TLSv1 @@ -32,15 +33,14 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/" # Setup environment and preload modules - Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl + PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl # Reload Perl modules when changed on disk - PerlModule Apache2::Reload - PerlInitHandler Apache2::Reload + #PerlModule Apache2::Reload + #PerlInitHandler Apache2::Reload # general mod_perl2 options <Location /otrs> - #ErrorDocument 403 /otrs/customer.pl ErrorDocument 403 /otrs/index.pl SetHandler perl-script PerlResponseHandler ModPerl::Registry @@ -83,7 +83,7 @@ Header set Cache-Control "max-age=2592000 must-revalidate" </FilesMatch> </Directory> - + <Directory "/opt/otrs/var/httpd/htdocs/js/js-cache"> <FilesMatch "\.(js|JS)$"> Header set Cache-Control "max-age=2592000 must-revalidate" @@ -94,4 +94,13 @@ # Limit the number of requests per child to avoid excessive memory usage #MaxRequestsPerChild 4000 + RewriteEngine On + RewriteRule ^/otrs$ /otrs/index.pl [R=301] + RewriteRule ^/otrs/$ /otrs/index.pl [R=301] + RewriteRule ^/$ /otrs/index.pl [R=301] + + # Fix incorrect TicketID links (common on Wikipedia) + RewriteCond %{QUERY_STRING} ^Action=AgentTicketZoom\&TicketID=(200[0-9]{13})$ + RewriteRule ^/otrs/index\.pl /otrs/index.pl?Action=AgentTicketZoom&TicketNumber=%1 [R] + </VirtualHost> -- To view, visit https://gerrit.wikimedia.org/r/77914 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifad8ee254844a840434cff2ae7a39d74a9d6be1d Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Jgreen <[email protected]> Gerrit-Reviewer: Jgreen <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
