# <VirtualHost *:443>
# ServerAdmin webmaster@localhost
# ServerName app.bayadic.com
# ServerAlias www.app.bayadic.com
# DocumentRoot /var/www/html/bayadic-app/prod/bayadic-v3/www
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined
# #-SERVER-CONFIGURATION
# RewriteEngine On
# #-DIRECTORY-CONFIGURATION
# <Directory "/var/www/html/bayadic-app/prod/bayadic-v3/www/">
# RewriteBase /
# RewriteRule ^index\.html$ - [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.html [L]
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
# </Directory>
# #ProxyPreserveHost On
# # RewriteEngine on
# # RewriteRule ^/(.*) http://127.0.0.1:8100/$1 [P,L]
# </VirtualHost>
# <VirtualHost *:80>
# ServerAdmin webmaster@localhost
# ServerName app.bayadic.com
# ServerAlias www.app.bayadic.com
# DocumentRoot /var/www/html/bayadic-app/prod/bayadic-v3/www
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined
# #-SERVER-CONFIGURATION
# RewriteEngine On
# #-DIRECTORY-CONFIGURATION
# <Directory "/var/www/html/bayadic-app/prod/bayadic-v3/www/">
# RewriteBase /
# RewriteRule ^index\.html$ - [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.html [L]
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
# </Directory>
# #ProxyPreserveHost On
# # ProxyPass / http://localhost:8100
# #ProxyPassReverse / http://localhost:8100
# # ProxyPass "/" "http://127.0.0.1:8100"
# #ProxyPassReverse "/" "http://127.0.0.1:8100"
# # RewriteRule ^/(.*) http://127.0.0.1:8100/$1 [P,L]
# </VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName app.bayadic.com
ServerAlias www.app.bayadic.com
DocumentRoot /var/www/html/bayadic-app/prod/bayadic-v3/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Rewrite rule to redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#-DIRECTORY-CONFIGURATION
<Directory "/var/www/html/bayadic-app/prod/bayadic-v3/www/">
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>