Difference between revisions from 2016/08/05 00:54 and 2016/07/31 00:42.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/etc/apache2/sites-enabled/000-default.conf
ln -s /etc/apache2/sites-available/remoteqth /etc/apache2/sites-enabled/001-remoteqth/etc/apache2/sites-available/remoteqth.conf /etc/apache2/sites-enabled/001-remoteqth.conf
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
sed -i s/short_open_tag\ =\ Off/short_open_tag\ =\ On/g /etc/php5/apache2/php.ini
a2enmod authz_groupfile
service apache2 restart
}}