I've been moving my site to SSL, everything is in the private_html folder and working fine...except for the newsletter manager I had installed in the cgi-bin. I spent an hour or so trying to figure out why everything seemed to be rerouting to my public cgi-bin. I finally took a look in the http.conf for the site and found this in the <VirtualHost: 443>:
ScriptAlias /cgi-bin/ /home/example/domains/example.com/public_html/cgi-bin/
so that's why it was routing back to my public_html cgi-bin folder. I edited virtual_host2_secure.conf (created a custom directory as directed and pasted the four confs in there first), just changed the first line to:
|?CGI=ScriptAlias /cgi-bin/ `HOME`/domains/`DOMAIN`/private_html/cgi-bin/|
Now everything is working as expected with my newsletter. I am posting here because I want to make sure I am not creating problems for myself when I changed this. Why would the SSL config reroute calls to the public cgi-bin?? Also. if there really is no issue with what I did, couldn't I just delete that line all together?
Thanks!
ScriptAlias /cgi-bin/ /home/example/domains/example.com/public_html/cgi-bin/
so that's why it was routing back to my public_html cgi-bin folder. I edited virtual_host2_secure.conf (created a custom directory as directed and pasted the four confs in there first), just changed the first line to:
|?CGI=ScriptAlias /cgi-bin/ `HOME`/domains/`DOMAIN`/private_html/cgi-bin/|
Now everything is working as expected with my newsletter. I am posting here because I want to make sure I am not creating problems for myself when I changed this. Why would the SSL config reroute calls to the public cgi-bin?? Also. if there really is no issue with what I did, couldn't I just delete that line all together?
Thanks!