Skip to content

Commit

Permalink
Update zz-spacewalk-www.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Oct 21, 2023
1 parent fbab24d commit f4a3e27
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \

DocumentRoot "/usr/share/susemanager/www/htdocs"

<Directory "/usr/share/susemanager/www/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion <= 2.2>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>

ExpiresActive On
<FilesMatch "\.(js|css|ico|gif|png|pdf)$">
ExpiresDefault A86400
Header append Cache-Control "public"
</FilesMatch>
</Directory>

Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
Expand Down Expand Up @@ -31,23 +49,6 @@ ScriptAlias /cgi-bin/ "/usr/share/susemanager/www/cgi-bin/"
</IfModule>
</Directory>

<Directory "/usr/share/susemanager/www/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion <= 2.2>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>

ExpiresActive On
<FilesMatch "\.(js|css|ico|gif|png|pdf)$">
ExpiresDefault A86400
Header append Cache-Control "public"
</FilesMatch>
</Directory>

# generic html; no session for vulnerability bots
ErrorDocument 404 /rhn/errors/404.jsp
Expand Down

0 comments on commit f4a3e27

Please sign in to comment.