ubuntuvhost810:start
This is an old revision of the document!
Table of Contents
Web Hosting
Для веб хостинга берем LAMP1) в качестве базовой конфигурации.
Secure Shell
Прежде чем настраивать веб хостинг мы обеспечим безопасность нашего сервера и данных наших потенциальных пользователей.
Apache Virtual Host
Перейдем в каталог cd /etc/apache2/sites-available/ и создадим в нем файл drivesource следующего содержания
export VHOST=drivesource
cat <<EOFCONFIG >/etc/apache2/sites-available/${VHOST}
<VirtualHost *:80>
ServerAdmin svschwartz[at]gmail.com
DocumentRoot /var/vhost/${VHOST}/htdocs
ServerName drivesource.ru
ServerAlias www.drivesource.ru
ErrorLog /var/log/apache2/${VHOST}/error.log
TransferLog /var/log/apache2/${VHOST}/access.log
CustomLog /var/log/apache2/${VHOST}/traf.log traff
CustomLog /var/log/apache2/${VHOST}/combined.log combined
ScriptAlias /cgi-bin/ /var/vhost/${VHOST}/cgi-bin/
<Directory /var/vhost/${VHOST}/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory /var/vhost/${VHOST}/htdocs>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
EOFCONFIG
a2ensite ${VHOST}
Активируем сайт
/etc/init.d/apache2 reload
1)
Linux Apache Mysql PHP
ubuntuvhost810/start.1230904272.txt.gz · Last modified: (external edit)
