By crabcakes on
Ok so here is my current setup
D6.15
PHP 5.2.11
Internet->Apache Reverse Proxy and SSL->Apache Drupal Server installed at DocRoot.
I have not touched the $base_url and I should not have to.
File downloads are set to public. I can sit and watch every request come through the reverse proxy but none of my file downloads are proxied/SSL'ed. I am talking specifically about files attached to nodes via the upload module.
Uploaded/Attached files:
http://ip.of.host/sites/default/files/drupal/filename.doc
Every other site link:
https://sitename.domain/examplepage
This presents a serious problem before I go live because (not to mention the security aspect):
It's a private IP. Links no worky.
Comments
Anyone? Starting to think
Anyone? Starting to think this is a problem with the upload module or core itself
I was able to make some
I was able to make some progress on this
Uploaded/Attached files:
http://sitename.domain/sites/default/files/drupal/filename.doc
Every other site link:
https://sitename.domain/examplepage
So basically now all file attachments/downloads are not proxied or SSL'ed.
Got it fixed
I wanted to update this issue and consider it to resolved. Although this may seem trivial to most it was not apparent to me all of these settings had to be correct in order for it to work. Also in 6.15 the default settings.php was incorrect for the 'reverse proxy' lines missing
$conf = array(I'm posting this because I spent two weeks crawling through this site, IRC, and other sites trying to figure this out problem and hope this might help someone else. The documentation is really lacking for this type of setup (which admittedly is probably not very popular but might be for you corp people running an intranet via drupal).
Essentially if you're using a reverse proxy and SSL in the setup below:
File downloads set to 'private'. Using module xsend. (really not specific to this setup but I would think it's suggested)
Internet->Apache Proxy and SSL (apache vhost setup)->drupal server (apache vhost setup)
in
settings.phpBelow is my apache vhost config for both the proxy server and drupal server.
Drupal server
Apache Proxy server running mod_ssl and reverse proxying back to drupal server (via http)