Skip to content

Commit

Permalink
correction de la redirection apache de taxhub
Browse files Browse the repository at this point in the history
  • Loading branch information
gildeluermoz committed Oct 17, 2018
1 parent 32ff733 commit cc75976
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install/install_all/install_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,18 @@ sed -i "s/https_key_path=.*$/https_key_path=$enable_https/g" settings.ini
# Configuration Apache de TaxHub
sudo touch /etc/apache2/sites-available/taxhub.conf
sudo sh -c 'echo "# Configuration TaxHub" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "<VirtualHost *:80>" >> /etc/apache2/sites-available/taxhub.conf'
dom="${my_url:7}"
dom=${dom%?}
sudo sh -c 'echo "Servername '$dom'" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "RewriteEngine on" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "RewriteRule \"taxhub$\" \"taxhub/\" [R]" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "<Location /taxhub>" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "ProxyPass http://127.0.0.1:5000 retry=0" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "ProxyPassReverse http://127.0.0.1:5000" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "</Location>" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "#FIN Configuration TaxHub" >> /etc/apache2/sites-available/taxhub.conf'
sudo sh -c 'echo "</VirtualHost>" >> /etc/apache2/sites-available/taxhub.conf'

# Création des fichiers systèmes liés à Taxhub
. create_sys_dir.sh
Expand Down

0 comments on commit cc75976

Please # to comment.