Project

General

Profile

Unable to login to GoAutoDial in HTTPS

Added by Ron Paul over 11 years ago

Hi,
I'vo configured my test server in the Virtual Box and my host OS is Windows 7. I tried to access "localhost" and at first it showed some errors. But later on I fixed by modifying the ssl config file and changing the ports. Now I'm able to access the localhost using https. But after reaching the main login page i.e., https://localhost:8888/login/ while I try to log to the admin it doesn't login at all. While I try to access the Agent Login from the top right corner. it opens the page http://localhost/agent/. Then I changed it to https://localhost:8888/agent/ and accessed the Agent Login page. However, after entering the credentials and trying to login to the interface it shows the following error:

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Hint: https://localhost.localdomain:80/
--------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost.localdomain Port 80

I feel that I need to make some changes in the config file of GoAutoDial PHP file and also some configs in the Linux Port/SSL config files. Please guide me to fix this issue.

Thanks in advance.


Replies (5)

RE: Unable to login to GoAutoDial in HTTPS - Added by Demian Biscocho over 11 years ago

You need to access your GOautodial server via it's IP address. Localhost is your Windows 7 workstation not the GOautodial server. Please refer to this link for more info on localhost: http://en.wikipedia.org/wiki/Localhost.

I highly recommend going over our Getting Started Guide here: Goautodial_Getting_Started_Guidev3. This should help fastrack setting up your GOautodial system.

RE: Unable to login to GoAutoDial in HTTPS - Added by Ron Paul over 11 years ago

I accessed it using the IP address also with the port number. I'm able to access the Login Page. But I'm unable to login. I'm able to login to LimeSurvey, phpMyAdmin and MySQL. But, I'm unable to login to the Admin interface and While I login to Agent Interface it shows the error

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Hint: https://localhost.localdomain:80/
--------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost.localdomain Port 80

I think the problem is with the port configuration of http.conf file and the ss.conf file. Please guide me to configure the ports for HTTP and HTTPS in both the files and what should me mentioned in Listen, NameVirtualHost and VirtualHost in both of these files.

Thanks

RE: Unable to login to GoAutoDial in HTTPS - Added by Demian Biscocho over 11 years ago

You might need to configure your virtual machine to use bridge mode for it's networking. The fact you're seeing the message below means it's not configured properly. A default GOautodial system doesn't need any special configurations to access it's login page.

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Hint: https://localhost.localdomain:80/
--------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost.localdomain Port 80

RE: Unable to login to GoAutoDial in HTTPS - Added by Ron Paul over 11 years ago

Hi,
I've installed GNOME and Firefox to access the GoAutoDial admin in the Cent OS Server itself for testing. But while I enter the ip address as "http://10.*.*.*" and it showed me "https" should be entered. So I entered "https://10.*.*.*." and I got the Admin login page. Once I entered the credentials (admin,goautodial) and press the login button, nothing happens. While I click the "Agent Login" it goes to http://127.0.0.1/agent. Then I put https and access the Agent login page. But, it shows Bad Request error. I'm posting the ssl_access_log and error_log.

*ssl_access_log *
127.0.0.1 - - [25/Aug/2013:16:57:15 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:16:57:30 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:16:57:53 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:17 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:18 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:18 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:37 +0530] "GET / HTTP/1.1" 200 73
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /favicon.ico HTTP/1.1" 404 539
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /login/goautodial_logo.png HTTP/1.1" 200 6480
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /login/ HTTP/1.1" 200 4955
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /img/gologoico.ico HTTP/1.1" 404 289
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /login/smalllogo.png HTTP/1.1" 200 2451
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /login/jquery-1.2.6.min.js HTTP/1.1" 200 55774
127.0.0.1 - - [25/Aug/2013:17:03:42 +0530] "GET /login/bg.jpg HTTP/1.1" 200 839
127.0.0.1 - - [25/Aug/2013:17:03:42 +0530] "GET /login/portal-login-button.png HTTP/1.1" 200 1544
127.0.0.1 - - [25/Aug/2013:17:03:41 +0530] "GET /login/css/style.css HTTP/1.1" 200 4260
127.0.0.1 - - [25/Aug/2013:17:03:46 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:46 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:46 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:03:48 +0530] "GET / HTTP/1.1" 200 73
127.0.0.1 - - [25/Aug/2013:17:03:48 +0530] "GET /login/ HTTP/1.1" 200 4955
127.0.0.1 - - [25/Aug/2013:17:04:25 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:04:42 +0530] "GET /agent/ HTTP/1.1" 200 180
127.0.0.1 - - [25/Aug/2013:17:04:44 +0530] "GET /agent/agent.php?relogin=YES HTTP/1.1" 200 12922
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/images/goagent_logo.png HTTP/1.1" 200 2360
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/css/style.css HTTP/1.1" 200 1822
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/images/portal-login-reload.png HTTP/1.1" 200 2338
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/images/bg.jpg HTTP/1.1" 200 839
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/css/custom.css HTTP/1.1" 200 2
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/images/portal-login-button.png HTTP/1.1" 200 1544
127.0.0.1 - - [25/Aug/2013:17:04:45 +0530] "GET /agent/images/goautodial_logo-mid.png HTTP/1.1" 200 6480
127.0.0.1 - - [25/Aug/2013:17:04:56 +0530] "POST /agent/vdc_db_query.php HTTP/1.1" 200 260
127.0.0.1 - - [25/Aug/2013:17:05:02 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:05:17 +0530] "GET /agent/agent.php HTTP/1.1" 200 12792
127.0.0.1 - - [25/Aug/2013:17:05:20 +0530] "POST /agent/vdc_db_query.php HTTP/1.1" 200 260
127.0.0.1 - - [25/Aug/2013:17:05:24 +0530] "POST /agent/vdc_db_query.php HTTP/1.1" 200 260
127.0.0.1 - - [25/Aug/2013:17:05:31 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:28:47 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:28:47 +0530] "GET /" 400 530
127.0.0.1 - - [25/Aug/2013:17:28:47 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:17:28:52 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:17:28:52 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:17:28:52 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:17:28:55 +0530] "GET /" 400 530
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET / HTTP/1.1" 200 73
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/ HTTP/1.1" 200 4955
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/css/style.css HTTP/1.1" 200 4260
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/jquery-1.2.6.min.js HTTP/1.1" 200 55774
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/smalllogo.png HTTP/1.1" 200 2451
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/goautodial_logo.png HTTP/1.1" 200 6480
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/bg.jpg HTTP/1.1" 200 839
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /login/portal-login-button.png HTTP/1.1" 200 1544
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /img/gologoico.ico HTTP/1.1" 404 289
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /favicon.ico HTTP/1.1" 404 539
10.0.2.15 - - [25/Aug/2013:17:29:08 +0530] "GET /img/gologoico.ico HTTP/1.1" 404 289
10.0.2.15 - - [25/Aug/2013:17:29:20 +0530] "GET /login/ HTTP/1.1" 200 4955
10.0.2.15 - - [25/Aug/2013:17:29:25 +0530] "GET /login/ HTTP/1.1" 200 4955

error_log

[Sun Aug 25 16:14:25 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 25 16:14:25 2013] [notice] Digest: done
[Sun Aug 25 16:14:25 2013] [notice] SSL FIPS mode disabled
[Sun Aug 25 16:14:25 2013] [warn] Init: (127.0.0.1:80) You configured HTTPS(443) on the standard HTTP(80) port!
[Sun Aug 25 16:14:25 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sun Aug 25 16:44:45 2013] [notice] caught SIGTERM, shutting down
[Sun Aug 25 16:47:42 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Aug 25 16:47:42 2013] [notice] SSL FIPS mode disabled
[Sun Aug 25 16:47:42 2013] [warn] Init: (127.0.0.1:80) You configured HTTPS(443) on the standard HTTP(80) port!
[Sun Aug 25 16:47:42 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 25 16:47:42 2013] [notice] Digest: done
[Sun Aug 25 16:47:46 2013] [notice] SSL FIPS mode disabled
[Sun Aug 25 16:47:47 2013] [warn] Init: (127.0.0.1:80) You configured HTTPS(443) on the standard HTTP(80) port!
[Sun Aug 25 16:47:47 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

*ifconfig *
@[root@go ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:54:A1:67
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe54:a167/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51048 errors:27 dropped:0 overruns:0 frame:0
TX packets:20159 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:68819584 (65.6 MiB) TX bytes:1128471 (1.0 MiB)
Interrupt:193 Base address:0xd020

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:37241 errors:0 dropped:0 overruns:0 frame:0
TX packets:37241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3005110 (2.8 MiB) TX bytes:3005110 (2.8 MiB)
@

route

[root@go ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0

ping returns the response properly

I didn't change anything in the config files. It asks me to enter the ip address with the port number i.e., 80. phpMyAdmin is working properly, there is no issue with it. I'm unable to login to the GoAutoDial admin :( Please help me with it as I'm struggling for almost 10 days with this one issue.

Thanks in advance

RE: Unable to login to GoAutoDial in HTTPS - Added by Demian Biscocho over 11 years ago

Try reinstalling again in VirtualBox. Make sure you set your network options to bridge mode. Also make sure that your VM receives an IP address during bootup or setup time. This means having a DHCP server active in your network (your router or wifi access point perhaps). After installation, follow the Getting Started Guide closely.

    (1-5/5)
    Go to top