LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Solved] cPanel email autoconfig not working

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2013, 11:11 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
Default [Solved] cPanel email autoconfig not working

When I try to access autoconfig.domain.tld on a cPanel 11.36 server I get an error 500 message from litespeed with :

Quote:
[ERROR] [REWRITE] Proxy target is not defined on external application list, please add a 'web server' with name '127.0.0.1'
What do I need to do exactly to fix this ?
Reply With Quote
  #2  
Old 03-12-2013, 11:13 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
create a symlink in /usr/local/bin/perl => /usr/bin/perl. 11.36 no longer has /usr/local/bin/perl
Reply With Quote
  #3  
Old 03-12-2013, 11:19 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
I've already got this symlink and I still get the error
Reply With Quote
  #4  
Old 03-12-2013, 03:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by Monarobase View Post
When I try to access autoconfig.domain.tld on a cPanel 11.36 server I get an error 500 message from litespeed with :



What do I need to do exactly to fix this ?
check External App (Admin Console => Configuration => Server) page. It seems Web Server (proxy) type External App was not defined or missing. If so, add them back.

Quote:
Type Name Address Action
Web Server 127.0.0.1:2086 127.0.0.1:2086 View Edit Delete
Web Server 127.0.0.1:2077 127.0.0.1:2077 View Edit Delete
Web Server 127.0.0.1:2095 127.0.0.1:2095 View Edit Delete
Web Server 127.0.0.1:2082 127.0.0.1:2082 View Edit Delete
Reply With Quote
  #5  
Old 03-13-2013, 01:10 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
They exist, but I don't think it's them that are causing this.

The lines causing this in cPanel's apache httpd.conf are :

Quote:
RewriteCond %{HTTP_HOST} ^autodiscover\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P]
RewriteCond %{HTTP_HOST} ^autoconfig\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P]
As you can see it doesn't use any of the above ports.

If I create one for port 80 will it cause issues with litespeed ? Shouldn't litespeed already respond to 127.0.0.1 on port 80 ?
Reply With Quote
  #6  
Old 03-13-2013, 02:45 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
If I create one for port 80 will it cause issues with litespeed ?
please try. currently our lab's cPanel server not available. so I can't test it now.

for reference:
http://www.litespeedtech.com/support...se_proxy_cache
1. Create Web Server External App
Name:127.0.0.1
Address:127.0.0.1:80
Reply With Quote
  #7  
Old 03-13-2013, 03:32 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
No luck so far !

I tried creating a webserver with name 127.0.0.1:80 but it didn't change anything to I set the name to 127.0.0.1 and the address to 127.0.0.1:80 but now autoconfig.domain.tld times out after 60 seconds with a 403 error and nothing in the error_log file.

Even without this entry un the listeners list I see :

Quote:
Running 127.0.0.1:80 127.0.0.1:80
[APVH_IP1:80 IP2:443 IP3:80 IP4:443 IP5:80 IP6:443 IP7:80 IP8:443 IP9:80 127.0.0.1:80 *_hostname] * hostname cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.*
As I updated to litespeed 4.2.2 just after updating to cPanel 11.36 and having not tried to access autoconfig.domain.tld before (this feature was first introduced in 11.34) I don't know if the probem was added by LS 4.2.2 or if LS was never working with the autoconfig subdomain
Reply With Quote
  #8  
Old 03-13-2013, 01:12 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by Monarobase View Post
...
As I updated to litespeed 4.2.2 just after updating to cPanel 11.36 and having not tried to access autoconfig.domain.tld before (this feature was first introduced in 11.34) I don't know if the probem was added by LS 4.2.2 or if LS was never working with the autoconfig subdomain
For proxy external app, it only handles http://127.0.0.1/ instead of alias like /sys-cgi/ which has to be defined as context in lsws (available at vhost level not server level). so this autoconfig and autodiscover which proxy through cgi-sys cgi is not working in lsws at the moment. will let you know once a fix is available.
Reply With Quote
  #9  
Old 03-21-2013, 06:24 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Fixed in the latest 4.2.2 build.

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.2
Reply With Quote
  #10  
Old 03-22-2013, 12:49 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
Thanks, that seems to have solved the issue
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:59 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.