📲 Download Our Apps

EMI Calculator

Download EMI Calculator

SOA Games

Download SOA Games

SOA Technology App

Download SOA Technology

BMI Checker

Download BMI Checker

Task Jira

Download Task Jira

Laughing Adda

Download Laughing Adda

📅 हिंदी कैलेंडर ऐप डाउनलोड करें

Download Shubhcalendar App

clean and correct Apache config template for a cPanel server using EasyApache + NGINX Manager where NGINX handles ports

Apache Config Snippet (for /etc/apache2/conf/httpd.conf)

Ensure these ports:

Listen 8080
Listen 8443

Example VirtualHost for HTTP (8080)

<VirtualHost *:8080>
ServerName yourdomain.com
ServerAlias www.yourdomain.com

DocumentRoot /home/username/public_html

<Directory "/home/username/public_html">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>

ErrorLog /var/log/apache2/yourdomain.com-error.log
CustomLog /var/log/apache2/yourdomain.com-access.log combined
</VirtualHost>

Example VirtualHost for HTTPS (8443)

<VirtualHost *:8443>
ServerName yourdomain.com
ServerAlias www.yourdomain.com

DocumentRoot /home/username/public_html

SSLEngine on
SSLCertificateFile /var/cpanel/ssl/apache_tls/yourdomain.com/combined
SSLCertificateKeyFile /var/cpanel/ssl/apache_tls/yourdomain.com/privkey

<Directory "/home/username/public_html">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>

ErrorLog /var/log/apache2/yourdomain.com-ssl-error.log
CustomLog /var/log/apache2/yourdomain.com-ssl-access.log combined
</VirtualHost>

Replace:

  • yourdomain.com with your actual domain
  • username with the cPanel username
  • SSL paths with correct ones (can get via WHM > Manage SSL Hosts)

Check Ports

After saving and verifying configs:

bashCopyEditnetstat -tulpn | grep -E '8080|8443'

Should show Apache (httpd) listening on these.


Restart Services

bashCopyEdit/scripts/restartsrv_httpd
/scripts/restartsrv_nginx

Test

bashCopyEditcurl -I http://yourdomain.com
curl -I https://yourdomain.com

If NGINX is proxying correctly to Apache, both should return a 200 OK.




Leave a Reply

AI Spiritual Tools & Interactive Experiences

Explore powerful AI-driven tools for daily guidance, spirituality, fun quizzes, and self-discovery.

Today’s Quote

Get inspiring daily quotes powered by AI to motivate and guide your day.

Explore Now

AI Tarot Card Reader

Reveal insights about your future, love, and career with AI tarot readings.

Read Tarot

Love Match Calculator

Check compatibility and love predictions using AI-based analysis.

Check Match

Fortune Cookie

Open an AI fortune cookie and receive wisdom, luck, and fun messages.

Open Cookie

Quiz Categories

Engage with knowledge-based and fun quizzes across multiple categories.

Start Quiz

Panchang Calendar

View daily Panchang, auspicious timings, tithi, nakshatra, and festivals.

View Panchang

Online Numerology

Discover your destiny number, life path, and numerology predictions.

Calculate Now

Spiritual Feeds

Stay connected with spiritual thoughts, mantras, and divine content.

View Feeds

Quiz Hub

Attempt trending quizzes on GK, spirituality, festivals, and more.

Explore Quizzes