Re: Squirrelmail an ServerAlias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, March 30, 2009 12:09 am, Paul Lesniewski wrote:> On Sun, Mar 29, 2009 at 4:36 PM, Karl Pearson <karlp@xxxxxxxxxxxxxxxx>> wrote:>>>> On Sun, March 29, 2009 11:50 am, LuKreme wrote:>>> I have the following:>>> <VirtualHost *:80>>>> � � �ServerName sm.example.com>>> � � �ServerAlias securemail.example.com>>> � � �ServerAlias webmail.example.com>>> � � �ServerAdmin admin@xxxxxxxxxxx>>> � � �DocumentRoot /usr/local/www/squirrelmail/>>> � � �#SSLCertificateFile /usr/local/etc/apache22/server.pem>>> � � �#SSLCertificateKeyFile /usr/local/etc/apache22/server.key>>> � � �ErrorLog /var/log/httpd-error.log>>> � � �CustomLog /var/log/httpd-access.log combined>>> � � �DirectoryIndex secure.html>>> </VirtualHost>>>>>>> All the server aliases have DNS CNAMEs that point to the correct IP,>>> but only the serverName directive works. �Do I have to do something>>> like this:>>>>>> <VirtualHost *:80>>>> � � �ServerName sm.example.com>>> � � �ServerAdmin admin@xxxxxxxxxxx>>> � � �DocumentRoot /usr/local/www/squirrelmail/>>> � � �#SSLCertificateFile /usr/local/etc/apache22/server.pem>>> � � �#SSLCertificateKeyFile /usr/local/etc/apache22/server.key>>> � � �ErrorLog /var/log/httpd-error.log>>> � � �CustomLog /var/log/httpd-access.log combined>>> � � �DirectoryIndex secure.html>>> </VirtualHost>>>>>>> <virtualhost: *:80>>>> � Servername webmail.example.com>>> � redirect permanent / http://sm.example.com>>> </virtualhost>>>>>>>> I don't think that will work, necessarilly, because of the>> DirectoryIndex part.>> Yeah, that's weird and would break it.>>> I have mine setup this way, which has worked for 8>> years on 3 different versions of Apache:>>>> <VirtualHost *:80>>> �ServerAdmin webmaster@xxxxxxxxxxxx>> �DocumentRoot /var/www/html/webmail>> �ServerName webmail.mydomain.com>> �ServerAlias webmail webmail.mydomain.com www.webmail.mydomain.com>> �ErrorLog /var/log/httpd/error_log.webmail>> �CustomLog /var/log/httpd/access_log.webmail common>> �ErrorDocument 403 /403.shtml>> �ErrorDocument 404 /404.shtml>> </VirtualHost>>>>> I also have an explicit <Directory /var/www/html/webmail>>> </Directory>>>>> section with "Allow from all" and "Options ExecCGI Indexes" . . .>> I don't think any Options are necessary (use "None") unless you are> running PHP under mod_cgi (you probably aren't).

I have ExecCGI and Indexes so I can add custom stuff, which I've notdone much of anyway. SM is made up of very solid code, so I have onlycustomized the login and logout portions to show links to other pages onmy server.
Excellent work team!
Karl
>>> so maybe something along those lines will be necessary. And yes, I>> have>> DNS served correctly, too, as you indicated you have as well.>> ------------------------------------------------------------------------------> -----> squirrelmail-users mailing list> Posting guidelines: http://squirrelmail.org/postingguidelines> List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user> List info (subscribe/unsubscribe/change options):> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users>

---Karl PearsonKarlp@xxxxxxxxxxxxxxxxxxxxx/Administrator of the sites athttp://ourldsfamily.com---"To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it."---


-----------------------------------------------------------------------------------squirrelmail-users mailing listPosting guidelines: http://squirrelmail.org/postingguidelinesList address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxxxxxx archives: http://news.gmane.org/gmane.mail.squirrelmail.userList info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux