Installation-apache
This revision is from 2016/07/31 00:34. You can Restore it.
open
vim /etc/apache2/sites-available/remoteqth.conf
and paste
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
site enable
rm /etc/apache2/sites-enabled/000-default ln -s /etc/apache2/sites-available/remoteqth /etc/apache2/sites-enabled/001-remoteqth ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load mv /var/www /var/www.own ln -s /home/pi/remoteqth/www /var/www a2enmod authz_groupfile service apache2 restart