
Myshare
New Member
Đầu tiên ta phải Remove IIS
Stop IIS nếu đã bật IIS trong Start ~> Administrative Tools ~> Internet Information Services (IIS) Manager
Vào website appservnetwork.com download Appserv về và cài đặt như bình thường
Mở port 80 trong Start ~> Administrative Tools ~> Windows Firewall with Advanced Security . Click chuột phải vào Inbound Rules ~> New Rule
OK vậy là xong rồi, nếu muốn chạy VPS bằng Domain thì thêm code sau vào file httpd.conf trong AppServ\Apache2.2\conf

Stop IIS nếu đã bật IIS trong Start ~> Administrative Tools ~> Internet Information Services (IIS) Manager

Vào website appservnetwork.com download Appserv về và cài đặt như bình thường
Mở port 80 trong Start ~> Administrative Tools ~> Windows Firewall with Advanced Security . Click chuột phải vào Inbound Rules ~> New Rule





OK vậy là xong rồi, nếu muốn chạy VPS bằng Domain thì thêm code sau vào file httpd.conf trong AppServ\Apache2.2\conf
PHP:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:\AppServ\www
</VirtualHost>
<VirtualHost *:80>
ServerName www.newstyleclan.net
ServerAlias newstyleclan.net
DocumentRoot C:\AppServ\www\newstyleclan.net
</VirtualHost>
<VirtualHost *:80>
ServerName www.music.newstyleclan.net
ServerAlias music.newstyleclan.net
DocumentRoot C:\AppServ\www\newstyleclan.net/music
</VirtualHost>
<VirtualHost *:80>
ServerName www.up.newstyleclan.net
ServerAlias up.newstyleclan.net
DocumentRoot C:\AppServ\www\newstyleclan.net/up
</VirtualHost>
<VirtualHost *:80>
ServerName www.game.newstyleclan.net
ServerAlias game.newstyleclan.net
DocumentRoot C:\AppServ\www\newstyleclan.net/game
</VirtualHost>
<VirtualHost *:80>
ServerName www.home.newstyleclan.net
ServerAlias home.newstyleclan.net
DocumentRoot C:\AppServ\www\newstyleclan.net/home
</VirtualHost>
<Directory "C:\AppServ\www">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>