tag:blogger.com,1999:blog-4056600558769970290.post254768972959303202..comments2024-03-14T00:46:58.461-07:00Comments on the Digital me: Making subdomains on localhostUnknownnoreply@blogger.comBlogger24125tag:blogger.com,1999:blog-4056600558769970290.post-87025569053356365862011-08-08T09:56:20.969-07:002011-08-08T09:56:20.969-07:00For a wordpress installation, if I want to use the...For a wordpress installation, if I want to use these subdomains and point them to the sites that I create under a multi-site network, what folder path must I give?<br /><br />/htdocs/wordpress/sub?<br /><br />Also, I didn't even have the 'NameVirtualHost *:80' commented. I didn't even have that piece of text in my conf file. So I added it. Any cause for concern?Ganeshhttps://www.blogger.com/profile/08584664227488425805noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-2418232586650981712011-03-01T13:05:30.967-08:002011-03-01T13:05:30.967-08:00Worked like a charm on Ubuntu 10. The host file is...Worked like a charm on Ubuntu 10. The host file is /etc/hosts, pretty much the same on all Linux systems, but the virtual host definition was put on a new file in /etc/apache2/sites-enabled folder.Anonymoushttps://www.blogger.com/profile/17404843394248684738noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-1752494629210838232010-12-29T14:41:41.312-08:002010-12-29T14:41:41.312-08:00FYI - You may need to restart your server for this...FYI - You may need to restart your server for this to work properly.<br /><br />Thanks for the info. It helped me a lot!Jon Piehlhttp://jonpiehl.comnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-84319359087101978342010-10-28T15:20:19.645-07:002010-10-28T15:20:19.645-07:00Great Info.
Just fyi, I am using UniServer and by...Great Info.<br /><br />Just fyi, I am using UniServer and by editing the hosts file did the trick. I didn't need to edit the apache config (so far at least).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-34591206289142050492010-10-19T15:48:00.214-07:002010-10-19T15:48:00.214-07:00Brilliant tutorial, it helped a lot!
Btw, works ju...Brilliant tutorial, it helped a lot!<br />Btw, works just as well on Linux :)Dragoshttp://golilipagos.infonoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-40390850639304309592010-01-09T11:49:01.604-08:002010-01-09T11:49:01.604-08:00I tried this, but then both localhost and the subd...I tried this, but then both localhost and the subdomain both pointed to the subdomain. It took me awhile, but I figured it out:<br /><br />Be sure you are using name-based virtual hosting, as mention in comment #4.<br /><br />Add a virtual host pointing back to localhost, as mentioned by Chris in #8.<br /><br />In each virtualhost, add the following to make sure that you will be allowed to access the virtualhost:<br /><br /><br /> Options Indexes FollowSymLinks<br /> AllowOverride None<br /> Order allow,deny<br /> Allow from all<br /><br /><br />Hope this helps!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-52054022931010872832009-12-30T02:14:14.129-08:002009-12-30T02:14:14.129-08:00Does this work public?Does this work public?Unknownhttps://www.blogger.com/profile/17007154248856904094noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-86365907926822329602009-11-18T22:32:17.509-08:002009-11-18T22:32:17.509-08:00Same steps applySame steps applyArun Prabhakarhttps://www.blogger.com/profile/14888016221735780777noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-12603603874960103592009-11-18T22:26:27.831-08:002009-11-18T22:26:27.831-08:00It is what to create only subdomain,
but how can w...It is what to create only subdomain,<br />but how can we create <b>subdomain</b>.subdomain.localhost<br />some thing like:<br /><br><br />sajid.webspot.localhost,<br />nasir.webspot.localhost,<br />naveed.webspot.localhost,<br />zeeshan.webspot.localhost,<br />ihsan.webspot.localhost,<br />etc..Unknownhttps://www.blogger.com/profile/11200579448955532423noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-64990926941618188872009-10-10T03:22:00.660-07:002009-10-10T03:22:00.660-07:00HI...
how about windows 2003 server?
could you h...HI...<br /><br />how about windows 2003 server?<br /><br />could you help me pls?Anonymoushttps://www.blogger.com/profile/07016094567111193519noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-77291924367789624852009-08-21T03:43:30.487-07:002009-08-21T03:43:30.487-07:00ServerName video.localhost
DocumentRoot "E:\s...ServerName video.localhost<br />DocumentRoot "E:\server\htdocs\video"<br />DirectoryIndex index.php index.html index.html index.htm index.shtml<br /><br />Are you doing this for a virtual host ?Arun Prabhakarhttps://www.blogger.com/profile/14888016221735780777noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-86524830363676036912009-07-28T06:38:27.570-07:002009-07-28T06:38:27.570-07:00How do i create dynamic sub domain, i dont have to...How do i create dynamic sub domain, i dont have to make entry in hosts file every time.<br />For eg. if new user is registered "Ajey" then he should be able to access ajey.mysite.com<br /><br />I tried *.mysite.com in hosts file but didnt workUnknownhttps://www.blogger.com/profile/17642764228160655105noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-53872328807360521702008-10-12T04:56:00.000-07:002008-10-12T04:56:00.000-07:00Best tutorial I have found! Worked perfectly. Than...Best tutorial I have found! Worked perfectly. Thanks a millionunderdogmediahttps://www.blogger.com/profile/01912353254693441315noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-52567379984066564672008-09-16T22:13:00.000-07:002008-09-16T22:13:00.000-07:00On mac, host file is at /etc/hostsOn mac, host file is at /etc/hostsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-5976467525016596072007-11-23T11:50:00.000-08:002007-11-23T11:50:00.000-08:00I found this quite useful. Unfortunately you still...I found this quite useful. Unfortunately you still have to add each subdomain to your hosts file, but it saves having to make additions to your httpd.conf file. It takes your subdomain and maps it to the directory with the same name. I believe the directory must be lower case, and you may need apache's rewrite_module enabled.<BR/><BR/><VirtualHost *:80> <BR/>ServerName localhost <BR/>ServerAlias *.localhost<BR/>VirtualDocumentRoot "C:/Users/Simon/My Websites/%1"<BR/>DirectoryIndex index.php index.html index.html index.htm index.shtml<BR/></VirtualHost>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-23596524232957393172007-08-02T10:00:00.000-07:002007-08-02T10:00:00.000-07:00This was really helpful. Thanks.This was really helpful. Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-2374233302580077852007-07-19T01:59:00.000-07:002007-07-19T01:59:00.000-07:00Just something else to add:Be sure to include a de...Just something else to add:<BR/>Be sure to include a default VirtualHost location. It's a good idea to create a VirtualHost entry to point to your plain old http://localhost/'s root directory, to avoid getting any "cannot find on this server", or 403 forbidden errors:<BR/><BR/><VirtualHost *:80><BR/> ServerName localhost<BR/> DocumentRoot "C:/path/to/your/htdocs"<BR/> DirectoryIndex index.php index.html index.html index.htm index.shtml<BR/></VirtualHost><BR/><BR/>There's a handy reference for Name-based Virtual Hosts at <A HREF="http://httpd.apache.org/docs/2.0/vhosts/name-based.html" REL="nofollow">apache.org</A>.Unknownhttps://www.blogger.com/profile/08842339184689475173noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-35509100261077407272007-06-28T07:32:00.000-07:002007-06-28T07:32:00.000-07:00thanks . its working.thanks . its working.Unknownhttps://www.blogger.com/profile/16459534293661593469noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-56705770169195503562007-03-06T03:16:00.000-08:002007-03-06T03:16:00.000-08:00For Linux, the procedure is exactly the same, exce...For Linux, the procedure is exactly the same, except the hosts file is located at /etc/hosts (use sudo or login as root). For each sudomain, you add a line with:<BR/><BR/>127.0.0.1 subdomain.localhost computer-nameAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-60091950224352900382007-02-06T04:26:00.000-08:002007-02-06T04:26:00.000-08:00Thanks hips!Thanks hips!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-78834961261429195062007-01-23T10:10:00.000-08:002007-01-23T10:10:00.000-08:00I found the reason for the error stated in my last...I found the reason for the error stated in my last comment about it going to the first vhost. It was because I wasn't using name-based virtual hosts (NameVirtualHost *:80).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-90161911869573405492007-01-23T09:50:00.000-08:002007-01-23T09:50:00.000-08:00I tried making a vhost entry for each client I hav...I tried making a vhost entry for each client I have (client1.localhost, client2.localhost, etc.), but when I go to any of them it always goes to the first entry, client1.localhost. What could be causing this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-74547986775057228552007-01-17T05:04:00.000-08:002007-01-17T05:04:00.000-08:00MARVELLOUS sure i wud try this one!MARVELLOUS sure i wud try this one!sarath-ahttps://www.blogger.com/profile/05090806882220774011noreply@blogger.comtag:blogger.com,1999:blog-4056600558769970290.post-2486289729281933732007-01-09T19:24:00.000-08:002007-01-09T19:24:00.000-08:00I actually wondered how to do this. thanks for tak...I actually wondered how to do this. thanks for taking the time to write a step by step instruction.Chadhttps://www.blogger.com/profile/13909662417473642437noreply@blogger.com