Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: klakshman03 on July 23, 2007, 10:43:03 AM

Title: https and port forwarding
Post by: klakshman03 on July 23, 2007, 10:43:03 AM
Hi guys.
I configured apache webserver in RHEL v4 with SSL.
now i am able to access my web as    https://mydomain.com  but i shud also access it as http://mydomain.com   . i want to do port forwarding..can any one help me out

regds
laxman
Title: Re: https and port forwarding
Post by: gauravbajaj on July 23, 2007, 01:25:22 PM
I have worked before not sure but i think this is correct:

You can make entry of Virtual host in httpd.conf with ports 80 and 443....both

Like
<Virtualhost mydomain.com:80>
</Virtualhost>

<Virtualhost mydomain.com:443>

</Virtualhost>

Thanks
Gaurav
Title: Re: https and port forwarding
Post by: klakshman03 on July 24, 2007, 06:20:05 AM
Its not working Gaurav..can any one pls
when iam trying http://mydomain.com ...it redirects to https://mydomain.com
OS --RHEL4

regds
laxman
Title: Re: https and port forwarding
Post by: gauravbajaj on July 24, 2007, 07:15:19 AM
Not sure but ,the config file should be like this :

Listen 80
Listen 443

NameVirtualHost 172.20.30.40:80
NameVirtualHost 172.20.30.40:443

<VirtualHost 172.20.30.40:80>

ServerName www.mydomain.com
DocumentRoot /www/domain-80
</VirtualHost>

<VirtualHost 172.20.30.40:443>
ServerName www.mydomain.com
DocumentRoot /www/domain-443
</VirtualHost>

Have you tried something like above ?

Thanks
Gaurav
Title: Re: https and port forwarding
Post by: klakshman03 on July 25, 2007, 09:44:58 AM
Finally i got Gaurav by making some changes in ssl.conf file

thanking u


laxman

Title: Re: https and port forwarding
Post by: gauravbajaj on July 25, 2007, 10:23:39 AM
Could you please share how you resolved that?

What changes you have made to ssl.conf ?

Thanks
Gaurav
Title: Re: https and port forwarding
Post by: klakshman03 on July 26, 2007, 04:05:34 AM
<Directory "/var/www/html">
        Options +Indexes
        SSLOptions      +StrictRequire
        SSLRequire      %{SSL_CIPHER_USEKEYSIZE} >= 128
        Order deny,allow
#       deny from all
        Satisfy any
</Directory>




regds
laxman
Title: Re: https and port forwarding
Post by: gauravbajaj on July 26, 2007, 06:31:18 AM
Thanks dear