This commit is contained in:
tmferreira-ti
2025-09-16 20:43:33 -03:00
commit 66fcc33282
21 changed files with 580 additions and 0 deletions

View 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>

View 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>

View 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; };
};

View 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
View 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