You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<VirtualHost *:80>
ServerName www.yourhost.com
PassengerRuby /usr/share/rvm/gems/ruby-3.1.4/wrappers/ruby
PassengerPreloadBundler on
DocumentRoot /srv/rails/seek/public
<Directory /srv/rails/seek/public>
# This relaxes Apache security settings.
Allow from all
# MultiViews must be turned off.
Options -MultiViews
Require all granted
</Directory>
<LocationMatch"^/assets/.*$">
Header unset ETag
FileETag None
# RFC says only cache for 1 year
ExpiresActive On
ExpiresDefault "access plus 1 year"
</LocationMatch>
</VirtualHost>
Looks better than the currently used:
set it up as a service
<VirtualHost *:80>
ServerName www.yourhost.com
PassengerRuby /usr/share/rvm/gems/ruby-3.1.4/wrappers/ruby
PassengerPreloadBundler on
DocumentRoot /srv/rails/seek/public
<Directory /srv/rails/seek/public>
# This relaxes Apache security settings.
Allow from all
# MultiViews must be turned off.
Options -MultiViews
Require all granted
</Directory>
<LocationMatch "^/assets/.*$">
Header unset ETag
FileETag None
# RFC says only cache for 1 year
ExpiresActive On
ExpiresDefault "access plus 1 year"
</LocationMatch>
</VirtualHost>
For code snippets
The text was updated successfully, but these errors were encountered:
Looks better than the currently used:
set it up as a service
For code snippets
The text was updated successfully, but these errors were encountered: