.
This commit is contained in:
14
Confs/srv2/Apache/fatecseg.conf
Normal file
14
Confs/srv2/Apache/fatecseg.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin tiago@fatecourinhos.edu.br
|
||||
ServerName www.fatecseg.edu.br
|
||||
DocumentRoot /dados/paginas/fatecseg
|
||||
|
||||
<Directory /dados/paginas/fatecseg/>
|
||||
Options -Indexes
|
||||
AllowOverRide All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog /var/log/apache2/error-fatecseg.log
|
||||
CustomLog /var/log/apache2/access-fatecseg.log combined
|
||||
</VirtualHost>
|
||||
27
Confs/srv2/Apache/fatecseg_ssl.conf
Normal file
27
Confs/srv2/Apache/fatecseg_ssl.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@fatecseg.edu.br
|
||||
ServerName www.fatecseg.edu.br
|
||||
ServerAlias fatecseg.edu.br
|
||||
Redirect permanent / https://www.fatecseg.edu.br/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin webmaster@fatecseg.edu.br
|
||||
ServerName www.fatecseg.edu.br
|
||||
ServerAlias fatecseg.edu.br
|
||||
DocumentRoot /dados/paginas/fatecseg/
|
||||
|
||||
<Directory /dados/paginas/fatecseg/>
|
||||
Options -Indexes
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog /var/log/apache2/error_fatecseg_ssl.log
|
||||
LogLevel warn
|
||||
CustomLog /var/log/apache2/access_fatecseg_ssl.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/apache2/ssl/fatecseg/apache.csr
|
||||
SSLCertificateKeyFile /etc/apache2/ssl/fatecseg/apache.key
|
||||
</VirtualHost>
|
||||
13
Confs/srv2/dns/named.conf.local
Normal file
13
Confs/srv2/dns/named.conf.local
Normal file
@@ -0,0 +1,13 @@
|
||||
// DNS
|
||||
zone "fatecseg.edu.br" IN {
|
||||
type slave;
|
||||
file "/var/lib/bind/db.fatecseg.edu.br";
|
||||
masters { 172.17.0.1; };
|
||||
};
|
||||
|
||||
// DNS Reverso
|
||||
zone "0.17.172.in-addr.arpa" {
|
||||
type slave;
|
||||
file "/var/lib/bind/db.0.17.172";
|
||||
masters { 172.17.0.1; };
|
||||
};
|
||||
24
Confs/srv2/dns/named.conf.options
Normal file
24
Confs/srv2/dns/named.conf.options
Normal file
@@ -0,0 +1,24 @@
|
||||
options {
|
||||
directory "/var/cache/bind";
|
||||
|
||||
// If there is a firewall between you and nameservers you want
|
||||
// to talk to, you may need to fix the firewall to allow multiple
|
||||
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
|
||||
// forwarders {
|
||||
// 0.0.0.0;
|
||||
// };
|
||||
|
||||
//========================================================================
|
||||
// If BIND logs error messages about the root key being expired,
|
||||
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||
//========================================================================
|
||||
dnssec-validation auto;
|
||||
|
||||
listen-on-v6 { any; };
|
||||
};
|
||||
14
Confs/srv2/interfaces
Normal file
14
Confs/srv2/interfaces
Normal file
@@ -0,0 +1,14 @@
|
||||
# This file describes the network interfaces available on your system
|
||||
# and how to activate them. For more information, see interfaces(5).
|
||||
|
||||
source /etc/network/interfaces.d/*
|
||||
|
||||
# The loopback network interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
auto enp0s3
|
||||
iface enp0s3 inet static
|
||||
address 172.17.0.2
|
||||
netmask 255.255.255.0
|
||||
gateway 172.17.0.1
|
||||
Reference in New Issue
Block a user