Jump to content

Sub Domain Names


Dysan

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.