Code: Select all
<VirtualHost *:80>
ServerName thealternativedrumschool.com
ProxyPass / http://79.98.30.183:8050/
ProxyPassReverse / http://79.98.30.183:8050/
</VirtualHost>
<VirtualHost *:443>
ServerName drumschool.com
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/drumschool.crt
SSLCertificateKeyFile /etc/httpd/ssl/drumschool.pem
ProxyPass / http://79.98.30.183:8050/
ProxyPassReverse / http://79.98.30.183:8050/
</VirtualHost>
Code: Select all
/etc/httpd/ssl/drumschool.pem
/etc/httpd/ssl/drumschool.key
/etc/httpd/ssl/drumschool.crt
/etc/httpd/ssl/bundle_drumschool.crt
I have generated a .key also.
my conf file is located in `/etc/httpd/sites-available/drumschool.com.conf`
(the virtual host code above is located in this .conf file).
it is currently live at this IP right now. http://79.98.30.183:8050/ (its live and seems to be ok on the server.
I have created a symolic link in `
Code: Select all
/etc/httpd/sites-enable/drumschool.com.conf
I have a file called http.conf located in
Code: Select all
/etc/httpd/conf/httpd.conf.
Code: Select all
IncludeOptional conf.d/*.conf
IncludeOptional sites-enabled/*.conf
IncludeOptional sites-available/*.conf
Code: Select all
[root@3xv5 ~] systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-11-08 22:45:57 EET; 24min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 5536 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 15514 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 15514 (code=exited, status=1/FAILURE)
Nov 08 22:45:57 3xv5.c.time4vps.cloud systemd[1]: Starting The Apache HTTP Server...
Nov 08 22:45:57 3xv5.c.time4vps.cloud systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 08 22:45:57 3xv5.c.time4vps.cloud systemd[1]: Failed to start The Apache HTTP Server.
Nov 08 22:45:57 3xv5.c.time4vps.cloud systemd[1]: Unit httpd.service entered failed state.
Nov 08 22:45:57 3xv5.c.time4vps.cloud systemd[1]: httpd.service failed.
Apologies for the list of all the errors. Here is the key one I believe.
Code: Select all
[root@3xv5 ~]# sudo cat /var/log/httpd/error_log
[Tue Nov 07 11:10:00.272863 2023] [suexec:notice] [pid 2831] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 07 11:10:00.285995 2023] [ssl:error] [pid 2831] AH02203: Init: Private key not found
[Tue Nov 07 11:10:00.286025 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Nov 07 11:10:00.286037 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Tue Nov 07 11:10:00.286044 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Nov 07 11:10:00.286052 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Tue Nov 07 11:10:00.286061 2023] [ssl:error] [pid 2831] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Tue Nov 07 11:10:00.286068 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Nov 07 11:10:00.286075 2023] [ssl:error] [pid 2831] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Tue Nov 07 11:10:00.286079 2023] [ssl:emerg] [pid 2831] AH02312: Fatal error initialising mod_ssl, exiting.
[Tue Nov 07 11:14:19.033965 2023] [suexec:notice] [pid 3187] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 07 11:14:19.034368 2023] [ssl:error] [pid 3187] AH02203: Init: Private key not found
the only good thing I seem to get is when I use
sudo apachectl configtest I get a Syntax OK response.
I have been bashing my head with this problem. Its a managed SSL by godaddy that they said they couldnt do because its too hard...but they did go into my http.conf file. So part of me thinks maybe then did something there too?
Its huge but I can send on request.
Thanks for the help if any
I am very confused an lost.