Solved

LAN Server domain myserver.project1

Posted on 2013-12-18
1
372 Views
Last Modified: 2013-12-27
Hello, I have a server working on Apache and now I can access each project through the URL http://myserver/proyect1, http://myserver/proyect2 and so on,  where myserver is the root, but I want it to look and work this way http://myserver.proyect1 where myserver.proyect1 is the root folder for that project.

My server is running on Mac OS 10.8 with XAMPP.

Thanks.
0
Comment
Question by:ivanblue
1 Comment
 
LVL 10

Accepted Solution

by:
acbxyz earned 500 total points
ID: 39739404
From a DNS point of view project1.myserver.mynetwork.local would be the better choice.
In your case, "myserver" can be found via your local dns server (build in internet router most times) or broadcast.
Excursion: In domain name context the most global part is on the right and it becomes more specific the further you go to the left. .local as toplevel-domain is reserved for private purpose.

To have other names be found you need either a configurable dns server or add all other names to the hosts-file of your client(s). (/etc/hosts or %WINDIR%\sytem32\etc\drivers\hosts). After this is done all those names direct to your apache.
In your apache config have a look at virtual hosts. Most distributions have their specific examples. I don't know XAMPP that far but it should come with example configs, too.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question