Apache on mandrake 7.1

 
SOLVED
Go to solution
Richard Horton
Advisor

Apache on mandrake 7.1

I am using mandrake 7.1 with the apache web server and I need some newbie help. I can point my webbrowser to the IP address of the apache/mandrake server and see the default page. Where does this page exist in the directory structure?

Two, I want another index.html page to show up that resides at /home/rch/index.html and I need to know how to add this to the apache server (preferably through webadmin) so when someone type the url for my apache/mandrake server by ip address I can add the /something to the ipaddress and have it point to the index.html located in /home/rch/index.html.

I guess an easier way say this.. how do I add mutliple pages to my apache server that are requested by a web browser pointing to the same machine but different / options for different pages. I am not trying to do mutiple virtual domains.. just different sites depending on what url / directory the web browser is requesting. I hope this make sense.

An example might be:

1. My apache web server is requested from a standard webbrowser witht the url http://linuxbox

2. but I have two sites that I want requested by the url being:
http://linuxbox/site1
http://linuxbox/site2

3. site1 is actually located at /home/rch.
site2 is actually located at /home/abc.

4. How do I set this up in apached through webmin so the pages are serveed correctly?

thank you in advance.
SCO veteran converting to HP UX
9 REPLIES 9
Albert E. Whale, CISSP
Honored Contributor
Solution

Re: Apache on mandrake 7.1

1. The initial Home Directory for Apache is in /home/httpd/html - you will find the index.html in this directory.
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Albert E. Whale, CISSP
Honored Contributor

Re: Apache on mandrake 7.1

2. You can add additional directories to the Apache root level tree by creating additional sub-directories in the /home/httpd/html structure.

You can also create a World-Readable Directory for each of the users in their home directory called public_html.

This will allow the users to maintain their own HTML code, and keep every one's space separate.

Hope that helps!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Albert E. Whale, CISSP
Honored Contributor

Re: Apache on mandrake 7.1

I can answer this question for you, but in turn I have a question.

How is a Guy that is ttrying to help get points for answering your questions?

Do you have Webmin installed on the Server?
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Richard Horton
Advisor

Re: Apache on mandrake 7.1

I dont understand your question. When you answer it I will award the points. Isn't that how it is suppose to work?

I always award points after I get my issue resolved on here.

Thank you
richard
SCO veteran converting to HP UX
Richard Horton
Advisor

Re: Apache on mandrake 7.1

I always award points after my question has been answered. I really dont understand your question the way it is written. Am I suppose to give you points before you answer?

let me know please
richard
SCO veteran converting to HP UX
Richard Horton
Advisor

Re: Apache on mandrake 7.1

Yes.. I have the latest release of webmin running on my server.
SCO veteran converting to HP UX
Albert E. Whale, CISSP
Honored Contributor

Re: Apache on mandrake 7.1

Rich,

this is not inteded for you specifically, but as a general comment on the Forums use overall. http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x94f05f260cafd4118fef0090279cd0f9,00.html

The Thread basically says that if people reply to anyones question, that they reply, because they are trying to help, and in turn expect points. Again please Don't take this the wrong way, it just the general feeling in the forum, and the overall points awarded by the Linux and Openview forums (the ones I support most), is low.

Now to answer your question:

I am using Webmin version 0.80 (I recommend upgrading if you aren't using this version). Select Servers -> Apache (if this is the First excursion here, then also select configure).

Then select the first Virtual Server (if one doesn't exist then select Address Any, Port Any, Server Name ->Automatic), the changes we make will go here, because we are not going to change the name of the Web Server.

After you select this then enter Aliases and Redirects. What you want is to place the name site1 in the FROM FIELD and /home/rch - in the To Field of the directory aliases. Save this information.

Next Create a Per-Directory entry. Select type: Directory and the Path will be /home/rch.

Repeat this for each site.

Apply the changes.

Have a Great day!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Albert E. Whale, CISSP
Honored Contributor

Re: Apache on mandrake 7.1

Personally, I think that WebMin is harder to use for this application. Ideally there is only 4 lines which need to be added to the configuration file. If you'd like I'll create the entries which need to be added to your configuration.

Hope that helps.

Have a Great Day! Thanks agains for the greatly appreciated points!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Richard Horton
Advisor

Re: Apache on mandrake 7.1

Yes... I would agree..webmin is not the way to do this. I cannot get it to work following your instructions. Its probably something I am doing wrong thought. I am using webmin 0.82.

Anyways, could you give the me the actual text based config files I need to edit and any intructions I should follow.. i.e. the path names should they end with a / or not. I have noticed several bulletins regarding the url name and the alias directory and how important the ending slash in the alias can cause problems if not entered correctly.

thank you
richard
SCO veteran converting to HP UX