Apache settings not working properly.

Support for security such as Firewalls and securing linux
Post Reply
Posts: 742
Joined: 2014/11/24 11:04:37

Apache settings not working properly.

Post by hack3rcon » 2020/09/18 18:29:24

I made a thread in this forum and asked a question about some configuration lines that can be move from "httpd.conf" to Virtual Host file. Someone recommended https://httpd.apache.org/docs/2.4/mod/q ... rence.html to me to understand this concept. According to that document, an option like "TraceEnable" is for both of server and Virtual Host. I removed "TraceEnable off" from "httpd.conf" and added it to Virtual Host file:

Code: Select all

<VirtualHost *:80>
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
ServerAdmin root@localhost
ServerName www.example.net
ServerAlias www.example.net
DocumentRoot /var/www/wordpress
<Directory "/var/www/wordpress">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
ErrorLog /var/log/httpd/wordpress_error.log
CustomLog /var/log/httpd/wordpress_access.log common
RewriteEngine on
RewriteCond %{SERVER_NAME} =example.net [OR]
RewriteCond %{SERVER_NAME} =www.example.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Redirect / https://www.example.net

TraceEnable off
ServerSignature Off
But it can't working properly and my server is traceable. I scanned my web server by "Arachni" and result is:
trace.PNG (24.78 KiB) Viewed 1106 times

Thank you.

User avatar
Posts: 4
Joined: 2018/09/10 12:51:04

Re: Apache settings not working properly.

Post by MaSiNka » 2023/01/11 19:18:02

Hi are you fix it?
Relax :shock: :shock:

Posts: 561
Joined: 2019/10/09 12:31:40

Re: Apache settings not working properly.

Post by BShT » 2023/01/11 20:18:52

unless he made a local conf forcing the resolution of www.example.net to his server, what he tested was a random internet domain, not his server...

Post Reply