add redirects
This commit is contained in:
@@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
<div class="command-wrapper">
|
<div class="command-wrapper">
|
||||||
<div class="command">
|
<div class="command">
|
||||||
<span class="command-prompt" id="cmd1">eval "$(wget -qO- http://SERVER_IP/deployment/full)"</span>
|
<span class="command-prompt" id="cmd1">eval "$(wget -qO- http://SERVER_IP/deployment/y)"</span>
|
||||||
</div>
|
</div>
|
||||||
<button class="copy-btn" onclick="copyToClipboard('cmd1', this)">copy</button>
|
<button class="copy-btn" onclick="copyToClipboard('cmd1', this)">copy</button>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -91,6 +91,7 @@ configure_apache_arch() {
|
|||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot "/srv/http"
|
DocumentRoot "/srv/http"
|
||||||
DirectoryIndex index.html
|
DirectoryIndex index.html
|
||||||
|
RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/
|
||||||
|
|
||||||
<Directory "$SERVER_ROOT">
|
<Directory "$SERVER_ROOT">
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
@@ -119,7 +120,6 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Start/restart Apache
|
# Start/restart Apache
|
||||||
sudo systemctl enable httpd
|
|
||||||
sudo systemctl restart httpd
|
sudo systemctl restart httpd
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,6 +131,7 @@ configure_apache_debian() {
|
|||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot "/var/www/html"
|
DocumentRoot "/var/www/html"
|
||||||
DirectoryIndex index.html
|
DirectoryIndex index.html
|
||||||
|
RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/
|
||||||
|
|
||||||
Alias /deployment $SERVER_ROOT
|
Alias /deployment $SERVER_ROOT
|
||||||
|
|
||||||
@@ -157,7 +158,6 @@ EOF
|
|||||||
sudo a2ensite deployment
|
sudo a2ensite deployment
|
||||||
|
|
||||||
# Start/restart Apache
|
# Start/restart Apache
|
||||||
sudo systemctl enable apache2
|
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,6 +169,7 @@ configure_apache_redhat() {
|
|||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot "/var/www/html"
|
DocumentRoot "/var/www/html"
|
||||||
DirectoryIndex index.html
|
DirectoryIndex index.html
|
||||||
|
RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/
|
||||||
|
|
||||||
Alias /deployment $SERVER_ROOT
|
Alias /deployment $SERVER_ROOT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user