Jump to content
The Uniform Server Community
Sign in to follow this  
changtraingheo

Can not create Virtual host (version 8.8.8)

Recommended Posts

i can not create virtual host with ver 8.8.8, what did i do wrong:

 

Step 1: Edit httpd-vhosts.conf file

D:\UniServer\usr\local\apache2\conf\extra\httpd-vhosts.conf

 

Add:

<VirtualHost _default_:80>
 DocumentRoot D:/UniServer/www/tkp
 ServerName tkp.com
 ErrorLog "logs/error.log"
 CustomLog "logs/access.log" common
</VirtualHost>

 

Step 2: edit host file

etc/host

 

127.0.0.1  tkp.com

 

But, when i run http://tkp.com, it's run without tkp folder, it's display index.html file in D:/UniServer/www/ not D:/UniServer/www/tkp

Share this post


Link to post
Share on other sites

My best advice would be to use the Apache Vhosts panel, which you access through Server Configuration > Apache > Apache Vhosts.

You should read the detailed instructions in the documentation. By following this, you can create a vhost that actually works.

 

Regards,

BobS

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...