Jump to content

Recommended Posts

Hai

i need some one to write one virtual host in the httpd.conf

this one i have tried it out. but it is not working. Can some one guide it out.. :)

 

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName project.localhost
DocumentRoot "C:\xampp\htdocs\chaitu\support"
DirectoryIndex index.php login.php
<Directory "C:\xampp\htdocs\chaitu\support">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>

Link to comment
https://forums.phpfreaks.com/topic/190898-need-httpprojectlocalhost/
Share on other sites

Along with your virtual host config you'll need to do something so that that domain project.localhost resolves to your local server.

 

The easiest way to do this is to add an entry to your hosts file.

 

127.0.0.1 project.localhost

 

Your hosts file will be located within /etc on Linux, and you'll need to search for it on windows. From memory its within C:\windows\system32\drivers\etc (I'm not a windows user)

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.