Problemas com VirtualHost - httpd.conf [RESOLVIDO]

1. Problemas com VirtualHost - httpd.conf [RESOLVIDO]

Eduardo
eduardorezador

(usa openSUSE)

Enviado em 12/02/2018 - 18:58h

Olá pessoal!

Estou com uma dificuldade em habilitar um novo VirtualHost em meu servidor Red Hat 7.0

Mesmo criando o caminho no VirtualHost, está aparecendo a página do Red Hat Enterprise Linux Test Page.

Tentei criar outra porta, por exemplo 81 e inclui no Listen e VirtualHost, ainda assim continua carregando a página de teste do Apache Red Hat.

Configuração adicionada em /etc/httpd/conf/httpd.conf

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<Directory "/var/emporium/moderator/html">
Require all granted
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from All
</Directory>

<Directory "/var/emporium/moderator/html/img">
Require all granted
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/var/emporium/moderator/html/doc">
Require all granted
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/var/emporium/moderator/cgi-bin">
Require all granted
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

<Directory "/var/emporium_backup">
Require all granted
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/var/emporium/pos">
Require all granted
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/var/emporium/history">
Require all granted
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/var/emporium/exp">
Require all granted
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<VirtualHost *>
Options FollowSymlinks SymLinksIfOwnerMatch Includes
ServerAdmin emporium@conecto.com.br
ServerName moderator.localhost
DocumentRoot "/var/emporium/moderator/html"
Alias /emporium-backup/ "/var/emporium_backup/"
Alias /venditor/ "/var/emporium/pos/"
Alias /history/ "/var/emporium/history/"
Alias /moderator-img/ "/var/emporium/moderator/html/img/"
Alias /moderator-tmp/ "/var/emporium/moderator/tmp/"
Alias /doc/ "/var/emporium/moderator/html/doc/"
ScriptAlias /moderator-cgi/ "/var/emporium/moderator/cgi-bin/"
</VirtualHost>

Portas liberadas.

[root@localhost html]# netstat -t -l -p --numeric-ports
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:25 0.0.0.0:* LISTEN 1933/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2722/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9096/httpd
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 9096/httpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1343/sshd
tcp6 0 0 localhost:25 [::]:* LISTEN 1933/master
tcp6 0 0 [::]:22 [::]:* LISTEN 1343/sshd



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts