Welcome to WebmasterWorld Guest from 54.226.32.234

Forum Moderators: bakedjake

Message Too Old, No Replies

How can i config a webserver

Mandrake 9.2

     

raban

5:56 am on Mar 22, 2004 (gmt 0)

10+ Year Member



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

6:23 am on Mar 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

5:44 pm on Mar 22, 2004 (gmt 0)

10+ Year Member



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

12:18 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



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

4:53 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



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

8:36 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month