MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Spacedust on 2013-06-02, 22:16:47

Title: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-02, 22:16:47
I've just applied your fixes and it does not help at all.

Instead of webmail - index.php page is showing.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-02, 22:51:18
It's work for nginx-proxy. Try test532.potissima.com.

Need cache clear of browser and browser exit.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 01:11:00
Quote from: "MRatWork"
It's work for nginx-proxy. Try test532.potissima.com.

Need cache clear of browser and browser exit.

It works. I will retest again.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 01:26:40
Can you release this fix for Kloxo-MR 6.5.0f ? Retested still doesn't work. Tried fixweb, clearing cookies etc and nothing :/
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 01:46:31
Sent you my server details to check what's wrong.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-03, 02:15:57
It's work after 'sh /script/restart-services'.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 03:24:31
Quote from: "MRatWork"
It's work after 'sh /script/restart-services'.

http://webmail.jestonline.pl/ (http://webmail.jestonline.pl/) - still no webmail here...
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-03, 15:22:58
Try remove test. and test2. because may conflict with primary domain.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 17:48:03
Quote from: "MRatWork"
Try remove test. and test2. because may conflict with primary domain.

Still does not work :/
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-03, 18:12:59
Code inside latest dev:

1. domain.com -> redirect to www.domain.com (http://www.domain.com)
2. webmail.domain.com -> no redirect
3. because using wildcard, abc.domain.com -> no redirect

It's different with previous
1. all subdomain (including webmail.domain.com) -> redirect to www.domain.com (http://www.domain.com)
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-03, 18:23:15
Another example, you can see dev301.potissima.com (the same server with forum.mratwork.com; without wildcards).
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 18:29:36
Can you apply this fix on my server ?
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-03, 22:20:07
I think free software not include free support.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-03, 22:33:25
Quote from: "MRatWork"
I think free software not include free support.

Yes, but it doesn't work and you are not applying a fix for Kloxo 6.5.0.f and this is some serious bug !
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-06, 20:52:33
This is just crazy - I've compared my domains.conf inside alpha and final - they are the same.

When I add new domain + add redirect to www and wildcards generated code is completely different. That's why it does not work on final :/

(http://images.tinypic.pl/i/00397/su47izltooui.jpg)
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-06, 23:05:33
In previous version:

Code: [Select]
## web for ...
...
## webmail for ,,,
...

in latest version:

Code: [Select]
## webmail for ...
...
## web for ,,,
...

Change because handle for wildcards issue.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-06, 23:12:11
Quote from: "MRatWork"
In previous version:

Code: [Select]
## web for ...
...
## webmail for ,,,
...

in latest version:

Code: [Select]
## webmail for ...
...
## web for ,,,
...

Change because handle for wildcards issue.

Which file was changed ? My domains.conf.tpl inside Apache is exactly the same.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-06, 23:29:44
If running cleanup (cleanup-simple not enough), Kloxo-MR will be copy '/usr/local/lxlabs/kloxo/file/apache' to '/home/apache'. It's the same for nginx, lighttpd, php-fpm and phpini.

On next upload/version, also for qmail, bind and djbdns directory.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-06, 23:37:39
Quote from: "MRatWork"
If running cleanup (cleanup-simple not enough), Kloxo-MR will be copy '/usr/local/lxlabs/kloxo/file/apache' to '/home/apache'. It's the same for nginx, lighttpd, php-fpm and phpini.

On next upload/version, also for qmail, bind and djbdns directory.

I will have to compare file by file.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-15, 00:46:40
I've added the latest nginx configs with IPv6 still does not work. Config files are 1:1 exactly the same like in latest alpha.

Is there something changed inside Apache config files too ?
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-15, 00:59:27
Finally I was able to get this running on final by copying whole /home/apache from my test alpha server. So these configs inside final just does not work.

I will have to rebuild apache configs for all domains to make it work ;)
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 02:42:17
Compared all files and still DOES NOT WORK on latest final release !
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 02:55:11
This is you are unlucky because latest update still work for dev301.mratwork.com.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 03:11:21
Quote from: "MRatWork"
This is you are unlucky because latest update still work for dev301.mratwork.com.

It worked for me if I switch to different webmail but only sometimes...

Also switching webmails removes all php_fpm configs ! So I have to run /script/fixphpfpm !
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 03:27:26
Where are the templates for /home/apache/conf/domains in alpha ?

I've copied the same working folders /home/apache and /home/nginx from alpha to stable, the runned /script/fixweb and files were generated completely different than in alpha ? WHY ???
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 03:31:31
Original inside /usr/local/lxlabs/kloxo/file/apache/tpl and /usr/local/lxlabs/kloxo/file/nginx/tpl. Running cleanup will be copy this dirs to /home/apache/tpl and /home/nginx/tpl.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 03:36:07
Quote from: "MRatWork"
Original inside /usr/local/lxlabs/kloxo/file/apache/tpl and /usr/local/lxlabs/kloxo/file/nginx/tpl. Running cleanup will be copy this dirs to /home/apache/tpl and /home/nginx/tpl.

Finally I found a bug:

Create domain, then enable www redirect, then enable wildcards with *.

Then go to General Settings and change webmail from --chooser-- to for example afterlogic.

Run:

/script/fixweb
/script/fixphpfpm
/etc/init.d/httpd restart
/etc/init.d/nginx restart
/etc/init.d/php-fpm restart

then go to webmail.domain.com and you will see your page instead of webmail :/

I was able to recreate it for both alpha and final...
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 03:42:37
Change '--chooser--' to certain webmail need running fixweb. It's bug since previous Kloxo (not only Kloxo-MR problem).
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 03:47:20
Quote from: "MRatWork"
Change '--chooser--' to certain webmail need running fixweb. It's bug since previous Kloxo (not only Kloxo-MR problem).

Did you read what I've written ? I was running /script/fixweb and it does not help at all :/
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 03:50:07
I've switched back from afterlogic to --chooser-- then runned /script/fixcleanup and still webmail doesn't work ...
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 03:55:39
Quote from: "Spacedust"
I've switched back from afterlogic to --chooser-- then runned /script/fixcleanup and still webmail doesn't work ...
Try running fixweb 2x and then restart-services.

If still not work, try delete cache from browser.

If still not work, you are unlucky man.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:03:00
Quote from: "MRatWork"
Quote from: "Spacedust"
I've switched back from afterlogic to --chooser-- then runned /script/fixcleanup and still webmail doesn't work ...
Try running fixweb 2x and then restart-services.

If still not work, try delete cache from browser.

If still not work, you are unlucky man.

It started working after server reboot... Any ideas ?
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:15:03
After switching to afterlogic, /script/fixweb and reboot it still does not work. So only --chooser-- works at this time :/
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:17:42
It's weird !

If I move /home/apache/conf/webmails/webmail.conf to /home/apache/conf/defaults/webmail.conf then all is working fine.

Why this file is in incorrect place ???
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 04:23:21
Quote from: "Spacedust"
It's weird !

If I move /home/apache/conf/webmails/webmail.conf to /home/apache/conf/defaults/webmail.conf then all is working fine.

Why this file is in incorrect place ???
You don't need move webmail.conf becuase without moving this webmail, my servers (remember, more then 1 servers) running well.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:25:14
Quote from: "MRatWork"
Quote from: "Spacedust"
It's weird !

If I move /home/apache/conf/webmails/webmail.conf to /home/apache/conf/defaults/webmail.conf then all is working fine.

Why this file is in incorrect place ???
You don't need move webmail.conf becuase without moving this webmail, my servers (remember, more then 1 servers) running well.

Webmail is working fine for me too, but if I use wildcards + www redirect then webmail does not work. When I move this file then all working ok so this needs to be fixed inside /script/fixweb !!!
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 04:27:19
Quote from: "Spacedust"
Quote from: "MRatWork"
Quote from: "Spacedust"
It's weird !

If I move /home/apache/conf/webmails/webmail.conf to /home/apache/conf/defaults/webmail.conf then all is working fine.

Why this file is in incorrect place ???
You don't need move webmail.conf becuase without moving this webmail, my servers (remember, more then 1 servers) running well.

Webmail is working fine for me too, but if I use wildcards + www redirect then webmail does not work. When I move this file then all working ok so this needs to be fixed inside /script/fixweb !!!
I mean running well on my servers for wildcards+www-redirect.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:28:10
If you do not want to move then create at least a symbolic link to this file so it will work for everyone !
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 04:41:32
Quote from: "MRatWork"
I mean running well on my servers for wildcards+www-redirect.

So what should be done in order to fix it ?
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: MRatWork on 2013-06-16, 05:15:27
It's maybe you subdomain xxx.dom.com but also set dom.com with wildcard+www.redirect.
Title: Re: Wildcard + www redirect - webmail still does not work
Post by: Spacedust on 2013-06-16, 05:41:39
Quote from: "MRatWork"
It's maybe you subdomain xxx.dom.com but also set dom.com with wildcard+www.redirect.

Maybe - but finally it's working ok.