Nico

Well-Known Member
Dec 5, 2001
232
0
316
Edmond, OK
We are having a strange problem with a shared SSL certificate on CPanel. https://servername.com is working but https://servername.com/~username causes a 404 error. Any suggestions on what may be causing this?

Thanks in advance.
 

bert

Well-Known Member
Aug 21, 2001
593
0
316
This might sound kind of simple or perhaps stupid, but have you tried with a trailing slash &/& :

https://servername.com/~username/
 

bert

Well-Known Member
Aug 21, 2001
593
0
316
If that does not work, then make sure you have &UserDir public_html& in the &IfDefine& section of your httpd.conf file as shown:

&IfDefine SSL&
&VirtualHost IP.HERE:443&
DocumentRoot /usr/local/apache/htdocs
BytesLog domlogs/serverx.domain.com-bytes_log
ServerName serverx.domain.com

CustomLog /usr/local/apache/domlogs/serverx.domain.com-ssl_log &%t %{version}c %{cipher}c %{clientcert}c&

SSLVerifyClient none
SSLEnable

SSLCertificateFile /usr/share/ssl/certs/serverx.domain.com.crt
SSLCertificateKeyFile /usr/share/ssl/private/serverx.domain.com.key
SSLLogFile /var/log/serverx.domain.com
UserDir public_html

&/VirtualHost&
&/IfDefine&
 

Nico

Well-Known Member
Dec 5, 2001
232
0
316
Edmond, OK
[quote:90162eeede][i:90162eeede]Originally posted by bert[/i:90162eeede]

This might sound kind of simple or perhaps stupid, but have you tried with a trailing slash &/& :

https://servername.com/~username/[/quote:90162eeede]

DOH! how did I miss that??

Thanks :)