Modify

Opened 12 years ago

Closed 12 years ago

#157 closed Bug/Fehler (fixed)

Installation fails on step5 when http to https redirect is active

Reported by: ck@… Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.0.0
Component: Installer Version: 1.06
Keywords: Cc:
Blocked By: Blocking:

Description

The installation procedure fails at step 5 when the virtual host is configured to redirect to https. Example:

<VirtualHost *:80>
ServerName myshop.example.com
Redirect / https://myshop.example.com...
</VirtualHost>
<VirtualHost *:443>
ServerName myshop.example.com
DocumentRoot ...
...
</VirtualHost>

Reason for this is, that install_step5 is looking for the robots.txt on http only, even when SSL was selected. See the log:

re.mote.ipv4.address - - [22/Oct/2013:10:49:23 +0200] "POST /_installer/install_step4.php HTTP/1.1" 200 8698 "https://myshop.example.com/_installer/install_step3.php"

re.mote.ipv4.address - - [22/Oct/2013:10:49:23 +0200] "GET /_installer/images/step4.gif HTTP/1.1" 200 36034 "https://myshop.example.com/_installer/install_step4.php"

inter.nal.ipv6.address - - [22/Oct/2013:10:49:53 +0200] "HEAD /robots.txt HTTP/1.1" 302 - "-" "-"

re.mote.ipv4.address - - [22/Oct/2013:10:49:53 +0200] "POST /_installer/install_step5.php HTTP/1.1" 200 4233 "https://myshop.example.com/_installer/install_step4.php"

re.mote.ipv4.address - - [22/Oct/2013:10:49:53 +0200] "GET /_installer/images/icons/error.gif HTTP/1.1" 200 122 "https://myshop.example.com/_installer/install_step5.php"

Note the return code "302" of robots.txt.

As soon as I disabled the automatic redirect (by using a "normal" http virtualhost), the setup ran through (even when the installer was launched over https):

re.mote.ipv4.address - - [22/Oct/2013:11:00:02 +0200] "POST /_installer/install_step4.php HTTP/1.1" 200 8697 "https://myshop.example.com/_installer/install_step2.php"

inter.nal.ipv6.address - - [22/Oct/2013:11:00:23 +0200] "HEAD /robots.txt HTTP/1.1" 200 - "-" "-"

re.mote.ipv4.address - - [22/Oct/2013:11:00:23 +0200] "POST /_installer/install_step5.php HTTP/1.1" 200 3717 "https://myshop.example.com/_installer/install_step4.php"

Note the return code is now 200.

This whole checking for the robots.txt needs to be improved as there are also issues when IPv6 is enabled but no vhost configured (see http://www.modified-shop.org/forum/index.php?topic=24162.0)

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 12 years ago

Resolution: fixed
Status: newclosed

fixed in r6206:6210

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.