a2ensite
페이지 정보
작성자 정성규 댓글 1건 조회 24,714회 작성일 10-02-20 01:44본문
1. a2ensite (apache2enable)
sudo a2ensite /etc/apache2/site-available/default
아파치 재시작
* a2dissite는 위의 반대입니다(비활성화)
2.
cd /etc/apache2/sites-enabled
ln -s ../sites-available/default-ssl
[이 게시물은 최고관리자님에 의해 2021-10-19 15:22:41 notebook에서 이동 됨]
정성규님의 댓글
정성규 작성일<VirtualHost *:80><br /> ServerAdmin webmaster@localhost<br /> DocumentRoot /var/www<br /> <Directory /><br /> Options FollowSymLinks<br /> AllowOverride none<br /> </Directory><br /> <Directory /var/www/><br /> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride All<br /> Order allow,deny<br /> allow from all<br /> </Directory><br /> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br /> <Directory "/var/www"><br /> AllowOverride none<br /> addHandler cgi-script cgi pi <br /> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br /> Order allow,deny<br /> Allow from all<br /> </Directory><br /> ErrorLog /var/log/apache2/error.log<br /> # Possible values include: debug, info, notice, warn, error, crit,<br /> # alert, emerg.<br /> LogLevel warn<br /> #CustomLog /var/log/apache2/access.log combined<br /> Alias /doc/ "/usr/share/doc/"<br /> <Directory "/usr/share/doc/"><br /> Options Indexes MultiViews FollowSymLinks<br /> AllowOverride none<br /> Order deny,allow<br /> Deny from all<br /> Allow from 127.0.0.0/255.0.0.0 ::1/128<br /> </Directory><br /></VirtualHost>