| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|How can i config a webserver|
| 5:56 am on Mar 22, 2004 (gmt 0)|
i want to know how can i config a webserver on linux . What should i know and what should i do , please help me!
some one say : if i use Apache , user's link on my server will be
is it right?
i only want
how must i do?
ps: i'm just a vietnamese so in my post had some gramma mistakes ....hihi (sorry)...
Thank to all
| 6:23 am on Mar 22, 2004 (gmt 0)|
You can set the users home directory to anything you want.
myserver.com/user is perfectly valid and will work....no need for the ~ (tilde sign)
| 5:44 pm on Mar 22, 2004 (gmt 0)|
You will need to have a fixed IP address to put the server on the Internet if that is what you're trying to do.
If you ony wnat the server to serve pages on your own network, local addresse in the 127.****.xxx.xxx range will be sufficient.
| 12:18 pm on Apr 5, 2004 (gmt 0)|
this is my example :
[example.com...] (with this url , i can download it)
[example.com...] (can't download this program)
i don't know how to edit [server.com...] to [server.com...] (with apache) . some body help me please .!
[edited by: DaveAtIFG at 5:28 pm (utc) on April 5, 2004]
[edit reason] Exemeplified URLs, no specifics please! [/edit]
| 4:53 pm on Apr 5, 2004 (gmt 0)|
If you have mod_rewrite enabled, something like this should work. Put it in an .htaccess file at /usr/home/.htaccess.
RewriteRule ^/~([a-z0-9]+)(.*) /home/$1$2
| 8:36 pm on Apr 5, 2004 (gmt 0)|
Look in your /etc/httpd/httpd.conf file for a "DocumentRoot" entry. See if the ~ character is part of the directory identifier. If it is, remove it and save the file.
Then do service httpd restart and see if it fixes the problem.
Before making any changes to your original httpd.conf file I would suggest doing a cp httpd.conf httpd.orig
to make a backup copy of the original file.
I am running apache under 8.1, it is possible the directory location for httpd might have changed for 9.2, so you might have to go looking for it.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved