LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2007, 10:02 AM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
SquirlMail with Apache question.


i have SquirrelMail on Qmail IMAP backend. SquirrelMail is running great without no problem. right now, i can browse SquirrelMail by putting http://www.mydomain.com in the browser. i want to be able to browse SquirrelMail from http://www.mydomain.com/webmail instead.

here is SquirrelMail section in httpd.conf:

Code:
<VirtualHost 192.168.0.200:80>
ServerName mail.mydomain.com
ServerAlias mail.*
ServerAdmin postmaster@mydomain.com
DocumentRoot /var/www/webmail
</VirtualHost>
what should i change to make SquirrelMail work as http://www.mydomain.com/webmail ?

thank you

Wael

Last edited by waelaltaqi; 01-10-2007 at 10:04 AM.
 
Old 01-10-2007, 10:32 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Assuming you file layout is the same as mine, you could create

/etc/httpd/conf.d/squirrelmail.conf

containing

Alias /webmail /var/www/webmail

and that should do it (check squirrelmail hasn't already created this file)

Did you mean you can get webmail by browsing www.mydomain.com or mail.mydomain.com?
 
Old 01-10-2007, 10:45 AM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
see this:

Code:
[root@mail conf.d]# dir
manual.conf  php.conf        python.conf  squid.conf  webalizer.conf
perl.conf    proxy_ajp.conf  README       ssl.conf    welcome.conf
it looks like squirrlmail didn't create the config file.

i want to run a website on the same server and i want the users to go to http://www.mydomain.com to get to it. i want to seperate squirellmail on the same server to run http://www.mydomain.com/webmail ....

there should be a way to setup the virtual to run off a diffrent url? any ideas?

thanks

Last edited by waelaltaqi; 01-10-2007 at 11:01 AM.
 
Old 01-10-2007, 10:50 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then create squirrelmail.conf as I suggested!

(if I wasn't quite clear - the contents of squirrelmail.conf should be the line "Alias /webmail /var/www/webmail")

Last edited by billymayday; 01-10-2007 at 10:51 AM.
 
Old 01-10-2007, 11:18 AM   #5
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
it worked

i deleted the virtual server section and created the file and it worked like a charm. thanks for the valuable tip. and sorry for the stupid question i asked in the previuos post.

Wael
 
Old 01-10-2007, 01:38 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Pleased to hear it, and no problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache question $Linuxnoob Ubuntu 22 09-21-2006 02:31 PM
apache question gsgleason Linux - Software 7 06-03-2005 08:50 AM
Question - (apache?) pylon42 Linux - General 7 03-23-2005 07:55 AM
Apache Question YourForum Linux - Software 2 12-29-2003 12:55 AM
Apache Question rewdbordru Linux - Newbie 8 04-06-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:22 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