Setting Apache
#vim /etc/apache2/sites-available/001-partkeepr.conf
<VirtualHost *:8080>
ServerName demo.partkeepr.org
DocumentRoot /var/www/PartKeepr/web
AcceptPathInfo on
ErrorDocument 403 "<h1>Demo Site update in progress. Check back in a few minutes.</h1>"
<Directory /var/www/PartKeepr/web>
Require all granted
AllowOverride All
</Directory>
## Logging
ErrorLog "/var/log/apache2/demo.partkeepr.org_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/demo.partkeepr.org_access.log" combined
</VirtualHost>
#vim /etc/apache2/port.conf
Listen 80
Listen 8080
<ifmodule ssl_module="">
Listen 443
</ifmodule>
<ifmodule mod_gnutls.c="">
Listen 443
</ifmodule>
create link
#cd /etc/apache2/sites-enabled
#ln -s ../sites-available/001-partkeepr.conf ./
沒有留言:
張貼留言