Step 1 – Update repositories.
Configuration Iptables
Step 2 – Install iptables-persistent
Step 3 – The below given screen is for selecting IPv4.
Step 1 – Update repositories.
Configuration Iptables
Step 2 – Install iptables-persistent
Step 3 – The below given screen is for selecting IPv4.
login Root install iptables-persistent
# Install IPTables Persistent Package apt-get install -y iptables-persistent # Add netfilter-persistent Startup invoke-rc.d netfilter-persistent save # Stop netfilter-persistent Service service netfilter-persistent stop
config rules.v4 and rules.6
nano /etc/iptables/rules.v4
login Server root
nano /etc/apache2/apache2.conf
From:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
TO:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
and
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ok save file
sudo /etc/init.d/apache2 restart
ok wokrk
Its working. It’s enabled use of .htaccess files.
A typical setup:
Converting a SSL certificate in Apache to Windows
class=”kbcontents” colspan=”2″>If you have multiple servers that need to use the same SSL certificate, such as in a load-balancer environment or using a wildcard or UC SSL certificates, you can convert the certificates and private key to a .pfx file and then import the certificate on Windows server so it can be used in IIS or Exchange. This may also be necessary when you switch hosting companies. We will be going over the exact process with step-by-step instructions in this article. If necessary, you can copy the SSL certificate from a Windows server to an Apache server instead.
We will assume that you have already successfully installed the SSL certificate on the Apache web server. You will follow these steps to move or copy that working certificate to the Windows server:
openssl genrsa -out /etc/httpd/ssl/privatekey.key 2048
หมายเหตุ /etc/httpd/ssl/ คื่อที่เก็บ file privatekey.key 2048
openssl req -new -key /etc/httpd/ssl/privatekey.key -out /root/Desktop/request.csr
หมายเหตุ out /root/Desktop/request.csr คือที่เก็บ file equest.csr