%PDF- %PDF-
Direktori : /etc/apache2/sites-enabled/ |
Current File : //etc/apache2/sites-enabled/pjc.tsisrl.net.conf |
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname$ # the server uses to identify itself. This is used when crea$ # redirection URLs. In the context of virtual hosts, the Ser$ # specifies what hostname must appear in the request's Host:$ # match this virtual host. For the default virtual host (thi$ # value is not decisive as it is used as a last resort host $ # However, you must set it for any further virtual host expl$ #ServerName www.example.com ServerName pjc.tsisrl.net ServerAlias www.pjc.tsisrl.net ServerAdmin webmaster@localhost DocumentRoot /var/www/pjc/public/ <Directory "/var/www/pjc/public/"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> # Available loglevels: trace8, ..., trace1, debug, info, not$ # error, crit, alert, emerg. # It is also possible to configure the loglevel for particul$ # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/inote.log combined # For most configuration files from conf-available/, which a$ # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For e$ # following line enables the CGI configuration for this host$ # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf RewriteEngine on RewriteCond %{SERVER_NAME} =pjc.tsisrl.net [OR] RewriteCond %{SERVER_NAME} =www.pjc.tsisrl.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet