This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

User with SSL website exceeds quota
#1
User with SSL website exceeds quota
Hello;

Today I found out, if a user who has SSL enabled exceeds their disk quota, it causes Apache2 to stop, an not start

Heres the Sentora generated vhost as normal:


Code:
# DOMAIN: youthinspire.dynamite.net.nz
<virtualhost *:443>
ServerName youthinspire.dynamite.net.nz
ServerAlias  www.youthinspire.dynamite.net.nz
ServerAdmin soa@dynamite.net.nz
DocumentRoot "/var/sentora/hostdata/youthinspire/public_html/youthinspire_org_nz"
ErrorLog "/var/sentora/logs/domains/youthinspire/youthinspire.dynamite.net.nz-error.log"
CustomLog "/var/sentora/logs/domains/youthinspire/youthinspire.dynamite.net.nz-access.log" combined
CustomLog "/var/sentora/logs/domains/youthinspire/youthinspire.dynamite.net.nz-bandwidth.log" common
<Directory "/var/sentora/hostdata/youthinspire/public_html/youthinspire_org_nz">
  Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 403 /_errorpages/403.html
DirectoryIndex index.php index.html index.htm index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
#php_flag
engine off
<Directory /usr/share/php>
php_admin_value open_basedir none
</Directory>
<Directory /usr/lib/php5/20121212+lfs>
php_admin_value open_basedir none
</Directory>
# Custom VH settings (if any exist)
SSLEngine on
ServerName youthinspire.dynamite.net.nz
ServerAlias youthinspire.dynamite.net.nz
SSLCertificateFile "/var/ssl/youthinspire.dynamite.net.nz.crt"
SSLCertificateKeyFile "/var/ssl/youthinspire.dynamite.net.nz.key"
SSLCertificateChainFile /var/ssl/startssl_256bit/sca.server1.crt
SSLCACertificateFile /var/ssl/startssl_256bit/root.crt

</virtualhost>
# END DOMAIN: youthinspire.dynamite.net.nz
################################################################

Once they exceed their disk quota, the vhost is changed to

Code:
# DOMAIN: youthinspire.dynamite.net.nz
# THIS DOMAIN HAS BEEN DISABLED FOR QUOTA OVERAGE
<virtualhost *:443>
ServerName youthinspire.dynamite.net.nz
ServerAlias www.youthinspire.dynamite.net.nz
ServerAdmin soa@dynamite.net.nz
DocumentRoot "/etc/sentora/panel/etc/static/diskexceeded"
<Directory "/etc/sentora/panel/etc/static/diskexceeded">
  Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.php index.html index.htm index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>
# END DOMAIN: youthinspire.dynamite.net.nz


This appears in the /var/log/apache2/error.log

Code:
[Mon Oct 17 14:03:52.351362 2016] [ssl:emerg] [pid 2070] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLC$
[Mon Oct 17 14:03:52.351430 2016] [ssl:emerg] [pid 2070] AH02312: Fatal error initialising mod_ssl, exiting.


I can get Apache working again by altering /etc/sentora/configs/apache/httpd-vhosts.conf from:


Code:
Listen 80
Listen 443



to

Code:
Listen 80
Listen 443 http


Ofcource, next time theres any changes, this is wipped, and Apache2 dies again

Is there any way to keep the cert info in the vhost when the disk is exceeded?
Reply
Thanks given by:


Messages In This Thread
User with SSL website exceeds quota - by modcar - 10-17-2016, 04:54 PM
RE: User with SSL website exceeds quota - by Me.B - 11-03-2016, 02:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Split Website log files. spoonman 1 3 ,378 01-01-2022, 10:00 AM
Last Post: TGates
MySQL Database user prefix MosleyCale 1 4 ,999 10-17-2020, 09:11 PM
Last Post: Ron-e
Uploaded Website Not Updating GiantEspresso 3 6 ,990 04-19-2020, 09:57 PM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 1 Guest(s)