HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   webmail.domain.tld dont work :( (http://www.howtoforge.com/forums/showthread.php?t=55182)

Ripeed 30th November 2011 16:21

webmail.domain.tld dont work :(
 
Hi, I have working domain.tld/webmail. But when I do the step 20.2 Squirrel mail in this tutor. And I want webmail.domain.tld that dont work.

If I remove # from:
<VirtualHost 1.2.3.4:80> <- i put there my IP
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com <-there i put my domain
</VirtualHost>

Then every site on my server goes on http://domain.tld/webmail/src/login.php
If I try webmail.domain.tld -> goes on http://domain.tld/webmail/src/login.php
If I try www.domain.tld -> goes on http://domain.tld/webmail/src/login.php

I doing something wrong:( PLS help.

Thanks for reply.

pititis 30th November 2011 18:24

You need:

1) Create subdomain in ispconfig pointing to your webmail
2) Add a dns entry for this subdomain

Cheers!

Ripeed 30th November 2011 19:25

Thanks, but I create the subdomain. And I set the A DNS for it. And still dont work. The same... every site domain.tld on server goes on the squirrelmail exept the subdomain.domain.tld there is the default web. Any other ideas?

:) meaby I dont understant... What you think with "create subdomain that will pointing to your webmail" I will pointing with CNAME to domain.tld/webmail?

pititis 30th November 2011 20:01

Quote:

Originally Posted by Ripeed (Post 268613)
:) meaby I dont understant... What you think with "create subdomain that will pointing to your webmail" I will pointing with CNAME to domain.tld/webmail?


Example (in Subdomain for website Tab):

Host: webmail
Domain: yourdomain.tld
Redirect type: R,L
Redirect path: http://yourdomain.tld:8080/webmail/

Be careful with the / at the end.

Ripeed 1st December 2011 08:30

OK, now i have it. But if I open webmail.domain.tld then it redirect me to domain.tld/webmail/src/login.php

It is posible have it like this:
I open webmail.domain.tld and it will stay as this webmail.domain.tld/src/login.php?

It must work like this:)

I dont know why it not work in configuration of squrrelmail:

vi /etc/apache2/conf.d/squirrelmail.conf

<VirtualHost 1.2.3.4:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com
</VirtualHost>

If i use this way, then every domain on my server pointing to /usr/share/squirrelmail :(

falko 2nd December 2011 17:22

Quote:

Host: webmail
Domain: yourdomain.tld
Redirect type: R,L
Redirect path: http://yourdomain.tld:8080/webmail/
Did you try the other flags?

Ripeed 2nd December 2011 18:27

What you mean with "flags"? :) Thanks

I have it like this:

Host: webmail
Domain: domain.cz
Redirect type: R,L
Redirect path: http://domain.cz/webmail/

It work like this:
I type webmail.domain.cz and in url shows domain.cz/webmail/src/login.php

And I want this:
I type webmail.domain.cz and in url stay as webmail.domain.cz/src/login.php

Thanks a lot for help falko.

falko 3rd December 2011 15:15

With flags I refer to the "Redirect type" field.

Ripeed 7th December 2011 16:27

I try every option on redirect and nothing. Still the same.

Meaby I must change sometning in .htaccess? It is possible?

cbj4074 7th December 2011 21:16

From what I gather, you want to create a subdomain, e.g., webmail.example.com, via which your webmail software is accessible.

Further, you want webmail.example.com to remain in the browser's address field, even though the "actual" location of the webmail software may reside elsewhere, whether within Apache's document root or not.

Correct?

There is an important proviso mentioned in the step of the tutorial to which you refer: "Also make sure that the vhost webmail.example.com does not exist in ISPConfig [emphasis mine] (otherwise both vhosts will interfere with each other!)."

You don't need to create a redirect in ISPConfig, either.

Either you need to follow the tutorial exactly (don't create the subdomain in ISPConfig) or, if you'd rather manage the subdomain in ISPConfig, you need to:

1.) Create the domain (not subdomain, as those are simply aliases) in ISPConfig, e.g., webmail.example.com. Again, do not specify a redirect of any kind for the domain.

2.) Create an A-record for webmail.example.com in your DNS configuration, wherever that might reside, and point it to your server's IP address.

3.) Create an alias for SquirrelMail in your Apache configuration.

Concerning step 3, add the following to the subdomain's Apache configuration in ISPConfig (Sites -> webmail.example.com -> Options -> Apache Directives box):

Code:

Alias / /usr/share/squirrelmail
It will take up to one minute for the Apache Directives change to take effect. You can review the change's status in ISPConfig (Monitor -> Show jobqueue).

Be aware that you may receive "Permission denied" errors when you visit webmail.example.com until you configure additional permissions.

But let us know when you get to that point...


All times are GMT +2. The time now is 14:41.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.