News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

web admin only allowing https? breaking imdb...

Started by donpaul, January 03, 2011, 02:31:15 AM

Previous topic - Next topic

donpaul

After updating the core, I went to the web admin and found this:

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://192.168.80.1/

Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.6 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Server at 192.168.80.1 Port 443


I switch to https and it works, but this breaks imdb, which loads http://192.168.80.1/lmce-admin/coverArtExtractor_IMDB.php

Was this by design or did something get botched during the upgrade? I can't seem to find the setting or why this has changed.

donpaul

From the apache log

--2011-01-02 21:56:37--  http://192.168.80.1/lmce-admin/coverArtExtractor_IMDB.php?fileID=15127&searchIndex=DVD&Keyword1Type=Keywords&Keyword1Search=Going+the+Distance++2010+
Connecting to 192.168.80.1:80... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `STDOUT'

    0K                                                        88.7M=0s

2011-01-02 21:56:37 (88.7 MB/s) - `-' saved [603]

donpaul

When apache2 is restarted


dcerouter_1011713:/etc/apache2# service apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.80.1 for ServerName
[Sun Jan 02 22:42:00 2011] [error] VirtualHost _default_:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Jan 02 22:42:00 2011] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Jan 02 22:42:00 2011] [warn] NameVirtualHost _default_:443 has no VirtualHosts
[Sun Jan 02 22:42:00 2011] [warn] NameVirtualHost _default_:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.80.1 for ServerName
[Sun Jan 02 22:42:01 2011] [error] VirtualHost _default_:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Jan 02 22:42:01 2011] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Jan 02 22:42:01 2011] [warn] NameVirtualHost _default_:443 has no VirtualHosts
[Sun Jan 02 22:42:01 2011] [warn] NameVirtualHost _default_:80 has no VirtualHosts
   ...done.

donpaul

removed /etc/apache2/sites-enabled/default-ssl and could access over http again.

Any explanations? Future feature?

Marie.O

Please open a trac ticket detailing your findings, and assign it to merkur2k
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

merkur2k

It is supposed to provide both http and https, and has done so correctly with several other people testing. Have you made any modifications to your apache config?
It would help me to be able to see the contents of your /etc/apache2/sites-available/default-ssl and /etc/apache2/sites-available/pluto if possible.

donpaul

I never made any changes to anything related to apache, and it has worked fine until I did the update. I had not updated since early october. I'll open a trac ticket.