Tạo virtual host với Xampp

– Mở file: C:\WINDOWS\system32\drivers\etc\hosts
Thêm vào:    local.ttweb.com
– Mở file: E:\xampp\apache\conf\extra\httpd-vhosts.conf
Thêm vào:

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot “E:/xampp/htdocs/”
ServerName localhost

<VirtualHost *:80>
ServerAdmin admin@local.ttweb.com
DocumentRoot “E:/ttweb/”
ServerName local.ttweb.com
ErrorLog “logs/local.ttweb.com-error.log”
CustomLog “logs/local.ttweb.com-access.log” combined

– Mở file: E:\xampp\apache\conf\httpd.conf
Thêm vào:

<Directory “E:/ttweb/”>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all


About tttlinux85
Bất bình thường...

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: