March 28, 2024, 08:21:14 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: https and port forwarding  (Read 4742 times)

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
https and port forwarding
« 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: https and port forwarding
« Reply #1 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

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
Re: https and port forwarding
« Reply #2 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: https and port forwarding
« Reply #3 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

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
Re: https and port forwarding
« Reply #4 on: July 25, 2007, 09:44:58 AM »
Finally i got Gaurav by making some changes in ssl.conf file

thanking u


laxman


Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: https and port forwarding
« Reply #5 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

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
Re: https and port forwarding
« Reply #6 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: https and port forwarding
« Reply #7 on: July 26, 2007, 06:31:18 AM »
Thanks dear