LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2003, 03:36 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
setting up an alias in apache


Hello everyone! Tarballed is back with an apache question.

I am trying to add a quick alias to apache. However, I am very new to apache. I have been reading my documentation though, so I have been trying. But, my boss wants this apache box up and running quickly so I need to get this done asap.

It's a real simple task that I am trying to do, I just cant figure it out yet.

Here is what I am doing. I have apache 1.3.7 installed with squirrelmail. The server is on our internal network with no access from the outside world at this time. (In the future though)
The server has a private IP.

Right now, to access squirrelmail from within the intranet, you have to type:

http://192.x.x.x/squirrelmail_1.2.10

What I want to do is just set it up so I can type in:

http://192.x.x.x/sms

I know I can do that in the httpd.conf file, but I am a little unsure.

If anyone has some input for me, i'd love to hear it.
Also, any great links for configuring apache would be great. I will be using apache a lot here in the future.

Thanks much.

The Tarballed
 
Old 01-31-2003, 03:47 PM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
Well, in all honesty, if you installed a standard squirrelmail package, all you have to do is rename the directory.

mv squirrelmail_1.2.10 mail
Would do it from a command prompt, if you are in the proper directory.



You could also set it up in your httpd.conf in the following manner:
(This is based on my personal server, so substitute where necessary.)



<VirtualHost 192.168.0.1>
Servername athas.wolven.com
ServerAlias darksun.wolven.com
DocumentRoot /home/athas/public_html
ServerPath /home/athas/public_html
</VirtualHost>


Do you see how I added the alias?

ServerAlias

Presuming your DNS is setup correctly, you could actually have


mail.hostname.com

instead of

http://192.168.0.1/squirrelmail_1.2.10



If all of this has been either too confusing, or too much information, or too little, say so, and I'll try to be more direct.

Simple answer, though, is to follow the directions up top, and rename the directory.
 
Old 01-31-2003, 03:54 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Wolven. Thanks for your input. I really do appreciate.

I am learning apache as we write, so I am trying to absorb as much as I can. Also, we currently do not have any DNS servers set up on our intranet (Thats my next task) so I am trying to get around a way to just have a few people on our LAN access the squirrelmail in a easier way. We are testing it out right now.

Once we have this all setup correctly, I am going to setup some DNS servers and make the zones accordingly.

In the meantime, I am going to try your suggestions.

Do I need to create any DNS records to attemp what I am trying? Or can I just make a few alias setups in the http.conf file?

Thanks.

Tarballed
 
Old 01-31-2003, 04:11 PM   #4
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
What you actually SAID you wanted requires nothing more than a name change of the directory.

No aliases, nothing silly like that. Squirrelmail works from a starting point of whatever directory it finds itself in.


To do what I was suggesting would be more involved, or you could edit a whole lot of /etc/hosts files. (I.E. EVERYONE'S.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting alias in bash, permanently allelopath Linux - General 6 10-24-2008 04:10 AM
Setting the hostname/alias..what files?? RoaCh Of DisCor Linux - Networking 2 03-09-2005 02:09 AM
qmail: setting up alias to go to /dev/null? m3kgt Linux - Software 4 11-18-2003 03:50 PM
ip alias and router setting thanhnx Linux - Networking 20 01-26-2003 07:45 PM
setting alias and blackbox psyklops Linux - General 2 01-29-2002 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration