Jump to content

Recommended Posts

for testing you could tweak your hosts file

 

start->run

%systemroot%\system32\drivers\etc\hosts

 

MAKE A BACKUP

your hosts file should something like this

127.0.0.1      localhost

 

now if you change it to

127.0.0.1      localhost

127.0.0.1      images.localhost

 

 

Now you need to edit the httpd.conf file,

i don't use xampp, but if you look in th

\xampp\apache\ folder you should find it,

BACKIT UP!

 

open it and add a virtual host IE

<VirtualHost *:80>

ServerName images.localhost

DocumentRoot "C:/public_html/images"

DirectoryIndex index.php index.html index.html index.htm index.shtml

</VirtualHost>

 

reboot apache and then goto http://images.localhost

that should work :)

 

Link to comment
https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503699
Share on other sites

He probably wants it to be public

 

Dysan that is all DNS, virtual hosts can be setup for local use just like MadTechie shows, however for it to be public and everyone to see a DNS record for say  subdomain.mydomain.com must be pointed in the dns records of your host to your server.

Link to comment
https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503719
Share on other sites

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.