homepage Welcome to WebmasterWorld Guest from 54.237.38.30
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How can i config a webserver
Mandrake 9.2
raban

10+ Year Member



 
Msg#: 1007 posted 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
[myserver.com...]
is it right?

i only want
[myserver.com...]
how must i do?

ps: i'm just a vietnamese so in my post had some gramma mistakes ....hihi (sorry)...

Thank to all

 

percentages

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1007 posted 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)

hyperbole

10+ Year Member



 
Msg#: 1007 posted 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.

raban

10+ Year Member



 
Msg#: 1007 posted 12:18 pm on Apr 5, 2004 (gmt 0)

this is my example :
[example.com...] (with this url , i can download it)
but
[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]

VectorJ

10+ Year Member



 
Msg#: 1007 posted 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.


RewriteEngine on
RewriteRule ^/~([a-z0-9]+)(.*) /home/$1$2

donb01

10+ Year Member



 
Msg#: 1007 posted 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved