$sudo apt-get install apache2
//설치후 설정파일 : /etc/apache2/apache2.conf 입니다? ㅋ
$sudo vim /etc/apache2/sites-enabled/000-default
에서 많은 설정을 변경, 가상호스트를 추가할수가 있네요~^^
3 <VirtualHost *:80>
4 ServerAdmin webmaster@localhost
5
6 DocumentRoot /var/www
7 <Directory />
8 Options FollowSymLinks
9 AllowOverride None
10 </Directory>
11 <Directory /var/www/>
12 Options Indexes FollowSymLinks MultiViews
13 AllowOverride None
14 Order allow,deny
15 allow from all
16 </Directory>
17
18 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
19 <Directory "/usr/lib/cgi-bin">
20 AllowOverride None
21 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
22 Order allow,deny
23 Allow from all
24 </Directory>
25
26 ErrorLog ${APACHE_LOG_DIR}/error.log
27
28 # Possible values include: debug, info, notice, warn, error, crit,
29 # alert, emerg.
30 LogLevel warn
31
32 CustomLog ${APACHE_LOG_DIR}/access.log combined
33
34 Alias /doc/ "/usr/share/doc/"
35 <Directory "/usr/share/doc/">
36 Options Indexes MultiViews FollowSymLinks
37 AllowOverride None
38 Order deny,allow
39 Deny from all
40 Allow from 127.0.0.0/255.0.0.0 ::1/128
41 </Directory>
42
43 </VirtualHost>
빨간 부분에서 원하는 파일 경로를 설정하심 됩니다... (위에것이 기본 설정 상태입니다.)
그리고 나서 재시작!!!
$sudo /etc/init.d/apache2 restart
해주면 됩니다 .^^