Author Topic: Apache Settings  (Read 4413 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Settings
« on: April 05, 2019, 02:54:45 PM »
I would like to set up some websites at the server with CWP.  The domain & email are tested.

After the generation of SSL, I have checked the httpd.conf or ssl.conf (conf.d) are both with default information only.  The Let's Encrpt files are generated.
I tried to edit it manually with the document root and/or log information.  I have also clicked on the "Restart Web Server" service.

I type "mydomain.com" and it goes to the default CWP page rather than my testing index.html at /home/mydomainuser/public_html

I have checked 80/ 443 ports are listening.  I can type http://mydomain.com to return the CWP default page but not for http://www.mydomain.com / https://mydomain.com / https://www.mydomain.com

For example, ssl.conf

<VirtualHost *:443>
     SSLEngine On
     SSLCertificateFile /etc/pki/tls/certs/mydomain.com.cert
     SSLCertificateKeyFile /etc/pki/tls/private/mydomain.com.key
     SSLCACertificateFile /etc/pki/tls/certs/mydomain.com.bundle  #If using a self-signed certificate or a root certificate provided by ca-certificates, omit this line

     ServerAdmin admin@mydomain.com
     ServerName mydomain.com
     DocumentRoot /home/mydominuser/public_html
     ErrorLog logs/mydomain/error.log
     CustomLog logs/mydomain/access.log combined
</VirtualHost>


Offline
*****
Re: Apache Settings
« Reply #1 on: April 05, 2019, 03:39:04 PM »
Hi, the VirtualHosts files placed in /usr/local/apache/conf.d/vhosts/
Also, make sure you do not have installed Apache from base or epel repos ;)
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services