Online Resources: Difference between revisions
(→Web) |
(→Web) |
||
Line 56: | Line 56: | ||
userdir.conf | userdir.conf | ||
userdir.load | userdir.load | ||
The conf file for the web server is | |||
'''fsunuc.conf''' | |||
<VirtualHost *:80> | |||
ServerName fsunuc.physics.fsu.edu | |||
ServerAdmin webadmin@localhost | |||
DocumentRoot /var/www/html/ | |||
ErrorLog ${APACHE_LOG_DIR}/error.log | |||
CustomLog ${APACHE_LOG_DIR}/access.log combined | |||
#Redirect hhtp to https | |||
RewriteEngine On | |||
RewriteCond %{HTTPS} !=on | |||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] | |||
<Directory /var/www/html> | |||
AllowOverride All | |||
</Directory> | |||
<Directory "/*/*/public_html"> | |||
AllowOverride FileInfo AuthConfig Limit | |||
#--ddc newer version of apache needed for all options to have +/- | |||
Options +MultiViews -Indexes +SymLinksIfOwnerMatch +ExecCGI | |||
<Limit GET POST OPTIONS> | |||
Order allow,deny | |||
Allow from all | |||
</Limit> | |||
</Directory> | |||
</VirtualHost> | |||
For the https | |||
<VirtualHost *:443> | |||
ServerName fsunuc.physics.fsu.edu | |||
ServerAdmin webadmin@localhost | |||
DocumentRoot /var/www/html/ | |||
ErrorLog ${APACHE_LOG_DIR}/error.log | |||
CustomLog ${APACHE_LOG_DIR}/access.log combined | |||
SSLEngine on | |||
SSLCertificateFile /etc/apache2/certificate/localhost.crt | |||
SSLCertificateKeyFile /etc/apache2/certificate/localhost.key | |||
<Directory /var/www/html> | |||
AllowOverride All | |||
</Directory> | |||
<Directory "/*/*/public_html"> | |||
AllowOverride FileInfo AuthConfig Limit | |||
Options +MultiViews -Indexes +SymLinksIfOwnerMatch +ExecCGI | |||
<Limit GET POST OPTIONS> | |||
Order allow,deny | |||
Allow from all | |||
</Limit> | |||
</Directory> | |||
</VirtualHost> | |||
= Elog = | = Elog = |
Revision as of 20:02, 8 April 2022
Most of the resources are hosted at fsunuc.
Web
the web service is provided by Apache2 2.4.41.
The webpage is stored at /var/www/html/
There are two "personal" webpage located at /home/<user>/public_html/
The Apache enabled following mods:
access_compat.load alias.conf alias.load auth_basic.load authn_core.load authn_file.load authz_core.load authz_groupfile.load authz_host.load authz_user.load autoindex.conf autoindex.load deflate.conf deflate.load dir.conf dir.load dump_io.load env.load filter.load mime.conf mime.load mpm_prefork.conf mpm_prefork.load negotiation.conf negotiation.load php7.4.conf php7.4.load proxy_balancer.conf proxy_balancer.load proxy.conf proxy_http.load proxy.load reqtimeout.conf reqtimeout.load rewrite.load setenvif.conf setenvif.load slotmem_shm.load socache_shmcb.load ssl.conf ssl.load status.conf status.load userdir.conf userdir.load
The conf file for the web server is
fsunuc.conf
<VirtualHost *:80>
ServerName fsunuc.physics.fsu.edu ServerAdmin webadmin@localhost DocumentRoot /var/www/html/
ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined
#Redirect hhtp to https RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
<Directory /var/www/html> AllowOverride All </Directory>
<Directory "/*/*/public_html"> AllowOverride FileInfo AuthConfig Limit #--ddc newer version of apache needed for all options to have +/- Options +MultiViews -Indexes +SymLinksIfOwnerMatch +ExecCGI <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> </Directory>
</VirtualHost>
For the https
<VirtualHost *:443> ServerName fsunuc.physics.fsu.edu ServerAdmin webadmin@localhost DocumentRoot /var/www/html/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/certificate/localhost.crt SSLCertificateKeyFile /etc/apache2/certificate/localhost.key <Directory /var/www/html> AllowOverride All </Directory> <Directory "/*/*/public_html"> AllowOverride FileInfo AuthConfig Limit Options +MultiViews -Indexes +SymLinksIfOwnerMatch +ExecCGI <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> </Directory> </VirtualHost>