LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-20-2012, 09:42 AM   #16
amit.roy
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled

Thanks so much! Finally I am going to try this out!
 
Old 10-24-2012, 07:37 AM   #17
amit.roy
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I went ahead and edited the httpd.conf file saved it and restarted the apache. Just wanted to see if the virtual host entry worked.
The good thing is it worked, https://next.my-guardian-angels.com is serving content from the sub-domain correctly.

But now a different problem came up, if I try https://my-guardian-angels.com, it serves the content from next.my-guardian-angels.com. I guess it is serving the content from the first virtualhost entry(for port 443)for any https requests to the main domain or other sub domains. I put the virtualhost entry(for port 443) for next.my-guardian-angels.com before the virtualhost entry(for port 443) for my-guardian-angels.com or other sub domains.

I didn't add the
Code:
NameVirtualHost 70.39.144.72:443
entry in httpd.conf as I felt apache was handling hhtps request. Any thoughts on how to solve this is greatly appreciated. Looking forward to some help. Thank you.
 
Old 11-25-2012, 02:56 PM   #18
amit.roy
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I added the
Code:
NameVirtualHost 70.39.144.72:443
and it worked perfectly. We further moved the virtualhost entries to a permanent location since the httpd.conf is a generated file and gets overwritten every time a domain/sub domain is added/deleted. Following steps to move the virtualhost entries worked for us
  1. Created a file /var/cpanel/templates/apache2/ssl_vhost.local
  2. Added the nameVirtualHost directive there for port 443
  3. Added the virtualhost entries for port 443 there
  4. use the following to test if your changes pass a basic configtest by Apache:
    Code:
     /usr/local/apache/bin/apachectl configtest
  5. We didnt use # /usr/local/apache/bin/apachectl restart , but rather restarted apache from WHM because the apache didnt restart when we used this command
  6. Test if apache restarted successfully by checking its status
    Code:
    # /usr/local/apache/bin/apachectl status
  7. If Apache fails to restart (e.g., if it fails to respond to the status check or if that produces an error), then you may want to revert your Apache configuration back using the first backup created, followed by another restart and status check
  8. To have modifications retained, all modifications must be checked into configuration system by running
    Code:
    /usr/local/cpanel/bin/apache_conf_distiller –update
  9. To see if your changes will be conserved, regenerate the Apache configuration file by running
    Code:
    /usr/local/cpanel/bin/build_apache_conf
    The usual command
    Code:
     /scripts/rebuildhttpdconf
    didn't work for us.

Home this post helps peoples.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect https://www.domain.com to https://domain.com decenter Linux - Server 4 09-13-2011 11:05 AM
[SOLVED] https and http for one domain name yoachan Linux - Server 4 03-13-2011 07:52 AM
*.domain.com Wildcard SSL issues (Godaddy WHM/Cpanel) chetanmadaan Linux - Software 1 06-18-2010 11:27 PM
IPtables - block subdomains (a.domain.com, b.domain.com, c.domain.com,...) benjalien Linux - Networking 6 06-24-2009 08:03 AM
one domain on 443 and other on 80 but https on 80 domain need to be stopped majid Linux - General 0 08-30-2006 08:24 PM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration