404 Не найдено Запрошенный URL не найден на этом сервере. - Почему? - PullRequest
0 голосов
/ 26 марта 2020

Я делаю свой первый веб-сайт в Ubuntu с apache2, внутри папки comptecher.se, у меня есть индекс. html, а также папка assets с изображениями et c.

Моя цель - просто подключиться к моему основному c text- html веб-сайту. Кто-нибудь может увидеть, что я пропустил?

Мой comptecher.se.conf выглядит так:

<VirtualHost *:80>

    ServerName comptecher.se
    ServerAdmin admin@comptecher.se
    DocumentRoot /var/www/comptecher.se
    ServerAlias www.comptecher.se
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Мой apache2.conf выглядит так, когда комментарии удалены:

DefaultRuntimeDir ${APACHE_RUN_DIR}

PidFile ${APACHE_PID_FILE}

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel warn

Include ports.conf

<Directory />
    Options -FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

<Directory /usr/share>
    AllowOverride All
    Require all granted
</Directory>

<Directory /var/www>
    Options Indexes FollowSymLinks
    AllowOverrid All
    Require all granted
</Directory>

AccessFileName .htaccess

<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>


LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf
LimitRequestBody 204800
Options None

PS: Я также получил сообщения об ошибках от Modsecurity, но проблема остается, когда ModSecurity выключен, поэтому я сомневаюсь в его важности.

...