sudo nvim 000-default.conf
ServerName localhost
Redirect permanent / https://localhost/
sudo nvim default-ssl.conf
sudo a2ensite default-ssl.conf
a2query -s
sudo systemctl restart apache2
curl -I http://localhost/
curl -IL -k http://localhost/
Created
April 29, 2025 07:16
-
-
Save nullx5/6dccb55606d5a0a5584ccb69dc297fe7 to your computer and use it in GitHub Desktop.
GitHub redirige de https://www.github.com
a https://github.com/
301 code
Facebook redirige de http://facebook.com/
a http://www.facebook.com/
301 code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Redirigir automaticamente de WWW a simple dominio en apache
sudo nvim default-ssl.conf
sudo a2ensite default-ssl.conf