Thursday, August 22, 2013
0 comments
undefined
undefined
Md. Mahidul Hasan
How to configure squid 3.1.x in redhat6
Preparing the server:
[root@app1 ~]# vim /etc/hosts
192.168.1.5 gw1.progoti.com gw1
127.0.0.1 localhost.localdomain localhost
[root@app1 ~]# vim /etc/sysconfig/network
HOSTNAME=gw1.progoti.com
[root@app1 ~]# vim /etc/squid/squid.conf
visible_hostname gw1.progoti.com
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl ournet src 192.168.1.0/24
http_access allow...
Saturday, August 3, 2013
0 comments
undefined
undefined
Md. Mahidul HasanHow To Force Apache to redirect from HTTP to HTTPS
How To Force Apache to redirect from HTTP to HTTPS
How To Force Apache to redirect from HTTP to HTTPS
Senario:
Suppose we have a website named "blog.mahidul.com". And I want if any user enter "blog.mahidul.com" to their browser it will automatically redirect to "https://blog.mahidul.com"
From RedHat:
First we will hash the followings from httpd.conf-
[mahidul@oracle ~]$ vim /etc/httpd/conf/httpd.conf
#NameVirtualHost *:80
#<VirtualHost *:80>
# ServerAdmin root@localhost
# DocumentRoot /var/www/html
# ServerName localhost
# ...
Subscribe to:
Posts (Atom)