How to configure static IP address on CentOS
How to configure static IP address on CentOS
By default CentOS minimal install does not come with pre-configure network. In this small tutorial i will explain how to set static ip address on CentOS 6.5 minimal.
First, need to edit the set up for the ethernet. Let’s start with editing this file:
EDIT Device:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=DC:41:A9:52:4E:6D TYPE=Ethernet ONBOOT=yes BOOTPROTO=none IPV6INIT=no USERCTL=no NM_CONTROLLED=yes PEERDNS=yes IPADDR=192.168.1.10 NETMASK=255.255.255.0
Now, configure default getaway: EDIT Network:
# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos6 GATEWAY=192.168.1.1 Configure DNS Server
EDIT DNS: # vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
Now restart the network interface: # /etc/init.d/networking restart Check eth0:
check configuration: # ifconfig eth0 eth0 Link encap:Ethernet HWaddr DC:41:A9:52:4E:6D inet addr:192.168.1.10 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::799f:e441:a0f6:8562/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63262 errors:0 dropped:0 overruns:0 frame:0 TX packets:32456 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:111111111 (233.0 MiB) TX bytes:11111111 (139.0 MiB)
Website Traffic and Page Rank
Website Traffic and Page Rank
Website Traffic - Check and Analyze Any Website | Similarweb
Centos old version - centos 6.10 download
Centos old version - centos 6.10 download
Index of /6.10/isos/x86_64 (centos.org)
CentOS-6.10-x86_64-LiveDVD.iso
CentOS-6.10-x86_64-bin-DVD1.iso
Centos 7
Index of /linux/centos/7.9.2009/isos/x86_64/ (man.poznan.pl)
Redirect HTTP to HTTPS with IIS 10
Redirect HTTP to HTTPS with IIS 10
1. Launch IIS Manager and select the website under the connections section on the left
If you don’t see the “URL Rewrite” button, you need to install “URL Rewrite” extension
https://www.iis.net/downloads/microsoft/url-rewrite
2. Click on “URL Rewrite” button.
3. On the next screen click on “Add Rule(s)” link on the right side menu.
4. Select “Blank Rule”, then click OK button.
5. On the next screen, enter the following details
6. Enter a user-friendly name like we used “Redirect-To-HTTPS”. Then, under the Match URL section, set Requested URL to “Matches the Pattern” and set Using to “Regular Expressions“. Then set the Pattern type to (.*) as shown in the below screenshot.
1
2
|
Name = Redirect-To-HTTPS
Pattern = (.*)
|
Keep all other options default.
7.Scroll down, expand “conditions” on the same screen. Click on Add button
Expand the Conditions block. Under Logical Grouping change the drop-down to Match All and click on Add. Under the Condition input box type “{HTTPS}“. In the input string select “Matches the Pattern” and set the Pattern value to “^OFF$“.
1
2
|
Condition input = {HTTPS}
Pattern = ^OFF$
|
Click “OK” button.
8.Scroll Down to the actions section.
Expand the Action block. Select the Redirect option in the Action Type dropdown. Set the Redirect URL to “https://{HTTP_HOST}/{R:1}“. Append query string must be checked and set the Redirect type select Permanent (301). Then click the Apply button in the right sidebar.
1
2
3
|
Action type = Redirect
Rewrite URL = https://{HTTP_HOST}{REQUEST_URI}
Redirect type = Permanent (301)
|
Click “Apply” from the right side “Actions” menu to save the changes.