Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Amygos committed Feb 9, 2024
1 parent 13a59f7 commit 2f440a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions freepbx/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ chown asterisk:asterisk /var/lib/asterisk/db
# Setup ca bundle for pjsip
ln -sf /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt


# Customized wizard page
cat > /etc/apache2/sites-available/wizard.conf <<EOF
Alias / /var/www/html/freepbx/wizard
EOF

# Link rewrite configuration
if [[ ! -f /etc/apache2/sites-enabled/wizard.conf ]] ; then
ln -sf /etc/apache2/sites-available/wizard.conf /etc/apache2/sites-enabled/wizard.conf
Expand Down
4 changes: 4 additions & 0 deletions freepbx/etc/apache2/sites-enabled/000-default.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<VirtualHost *:80>
<LocationMatch "^/$">
Redirect 301 "%{HTTP:X-Forwarded-Proto}://%{HTTP:X-Forwarded-Host}/freepbx/wizard/
</LocationMatch>

<LocationMatch "^/freepbx/?$">
Redirect 301 "%{HTTP:X-Forwarded-Proto}://%{HTTP:X-Forwarded-Host}/freepbx/admin/
</LocationMatch>
Expand Down

0 comments on commit 2f440a3

Please sign in to comment.