HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   HELP: Enabled SSL on Site, Broke site (http://www.howtoforge.com/forums/showthread.php?t=33129)

astewart 1st April 2009 15:28

HELP: Enabled SSL on Site, Broke site
 
Using ISPCONFIG 3.0.1.1

I went a head and enabled SSL on one specific site, I ended up getting 500 Internal Errors so i decided to revert back and disable SSL.

I'm still getting the Internal 500 Errors though!
I removed all Certs. in the ssl directory for that site but still not working.
I removed the Cert. via ISPCONFIG in the options for the specific site but no luck.
What am I missing here??


I verified the *.vhost for the specific site and nothing appears to have changed here.

Here is the Error I'm getting the in the error.log:
Quote:

[Wed Apr 01 11:08:52 2009] [alert] [client IP address] /var/www/iwebsource.net/web/.htaccess: RewriteEngine not allowed here


What else do I have to do to get my site backup??
:confused::confused:

astewart 1st April 2009 19:01

So I fixed the Internal 500 Errors but now sh404SEF (Joomla Component) no longer works.

The .htaccess file has not been modified so I can't figure out why sh404SEF no longer works.

Question: When enabling SSL for a site in ISPCONFIG 3, does it modify any Apache2 files?

I tried a number of different ways but I can't get it to work.

Has anyone else experienced issues with sh404SEF when SSL is enabled for a site?

astewart 1st April 2009 21:20

Alright, Issue is solved.
I edited the *.vhost for the specific site and commented out line for both directory paths:

#AllowOverride Indexes AuthConfig Limit

After that the .htaccess now works again.

till 2nd April 2009 10:54

Do not edit .vhost files manually, ISPConfig will remove all your changes. If you want to set different AllowOverride Options, you can do that in the apache directives field of the website.

Also what you did above is a big security problem if your server is used as hosting server for more then one customer. Commenting out the line means that your customers can now work around every limit you have set them by uploading an .htaccess file.

astewart 2nd April 2009 18:35

Thanks Till,
Your right, I took a look at the specific *.vhost file and the two lines I commented out are un-commented again.

And the site no longer works, 500 Errors again.

So in the ISPCONFIG control panel, under the 'Apache directives' for the specific site, would I simply add:

Quote:

<Directory /var/www/iwebsource.net/web>
Options FollowSymLinks
#AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
<Directory /var/clients/client0/web2/web>
Options FollowSymLinks
#AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
Then save the changes?

I tried adding the above it didn't work.
I then tried adding:
Quote:

Options FollowSymLinks
#AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
But this didnt work either.

I tried:
Quote:

AllowOverride All
This didnt work either.
What am I suppse to add to get this working?

till 2nd April 2009 20:04

Quote:

So in the ISPCONFIG control panel, under the 'Apache directives' for the specific site, would I simply add: .....
No.

Post the error message that you get in the error log of the website as you have to address this specific problem of apache.

astewart 2nd April 2009 20:36

It is the same error as I was getting from my original post:
Quote:

[Thu Apr 02 14:08:52 2009] [alert] [client IP address] /var/www/iwebsource.net/web/.htaccess: RewriteEngine not allowed here
I was able to resolve this yesturday by commenting out the following line in the specific *.vhost file for the site. But like you mentioned, ISPCONFIG did restore the default settings and now I'm back to the Internal 500 Errors.

This is what I commented out in the vhost file:
Quote:

AllowOverride Indexes AuthConfig Limit
eg.
Quote:

<Directory /var/www/iwebsource.net/web>
Options FollowSymLinks
#AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
<Directory /var/clients/client0/web2/web>
Options FollowSymLinks
#AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
</Directory>

astewart 2nd April 2009 23:34

So are there any other ways to allow .htaccess within the web directories without having to Comment-out:
Quote:

AllowOverride Indexes AuthConfig Limit
Is there something I can add in the Apache directives in ISPCONFIG to correct this?

Is there anyone else experiencing this issue?


All times are GMT +2. The time now is 00:42.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.