Dysan Posted March 28, 2008 Share Posted March 28, 2008 Hi, I'm intrigued to find out how the URL's on eBay work. The main domain name for eBay is: www.ebay.co.uk, but the signup page is www.signup.ebay.co.uk. How are the www.signup.ebay.co.uk (Sub domains) created? Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/ Share on other sites More sharing options...
wildteen88 Posted March 28, 2008 Share Posted March 28, 2008 Byusing virtual hosts if you're using Apache, if you have access to Apache's configuration Or if your site has a control panel such as cpanel/plesk you can setup subdomains from their. Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503677 Share on other sites More sharing options...
Dysan Posted March 29, 2008 Author Share Posted March 29, 2008 I have access to apache's configuration file, as I use Xampp. Where do I find this file, and what do I need to do? - is the file php.ini? Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503692 Share on other sites More sharing options...
MadTechie Posted March 29, 2008 Share Posted March 29, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503699 Share on other sites More sharing options...
Asheeown Posted March 29, 2008 Share Posted March 29, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503719 Share on other sites More sharing options...
MadTechie Posted March 29, 2008 Share Posted March 29, 2008 I have access to apache's configuration file, as I use Xampp. I hope his not using xampp for public access Quote Link to comment https://forums.phpfreaks.com/topic/98421-sub-domain-names/#findComment-503721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.