PDA

View Full Version : Eliminating the /~username after IP address


stefeb
01-26-2002, 12:42 PM
If I just enter my IP address, I'm taken to the Apache page that says, "Seeing this instead of the website you expected?"

When I add the /~username/, I'm taked to my sites folder.

Is there a way to bypass the use of ~username, or, is that a dangerous thing to do?

Also, I can't find where that, "Seeing this instead of the website you expected?" page is located. I guess I'm asking where the Apache server sends you when you just type in an IP address without the tilde.

Thanks again.
:cool:

griffman
01-26-2002, 03:38 PM
The default location is /Library/WebServer/Documents. You can configure almost everything in Apache, but you might need to study for a few years first ;-).

Actually, it's not that bad but some time at http://www.apache.org is highly recommended.

-rob.

stefeb
01-26-2002, 03:47 PM
Thanks.

So....If I were to replace the index. html document that lives in /Library/WebServer/Documents, with my own index.html, or other folder, that should allow me to do what I want (eliminate the ~username from my IP address.:confused:

griffman
01-26-2002, 10:27 PM
Exactly. I use my machine to experiment with a ton of different mySQL/PHP programs, and I just put each one in a subdirectory in /Documents. So I can access geeklog with 1.2.3.4.5/geeklog; vbulletin with /vbulletin, etc.

Think of the /Web Sites folder in users as a place for specific people to create web pages, and /Library/Documents as a place for the 'default' web site to go.

You can configure Apache to do much fancier stuff, of course (virtual domains, etc.), but this simple organization structure is sufficient for my needs.

-rob.

stefeb
01-26-2002, 10:29 PM
Much thanks kind sir:p