Apache2 ubuntu default page как убрать
Перейти к содержимому

Apache2 ubuntu default page как убрать

  • автор:

Форум русскоязычного сообщества Ubuntu

Страница сгенерирована за 0.057 секунд. Запросов: 25.

  • Сайт
  • Об Ubuntu
  • Скачать Ubuntu
  • Семейство Ubuntu
  • Новости
  • Форум
  • Помощь
  • Правила
  • Документация
  • Пользовательская документация
  • Официальная документация
  • Семейство Ubuntu
  • Материалы для загрузки
  • Совместимость с оборудованием
  • RSS лента
  • Сообщество
  • Наши проекты
  • Местные сообщества
  • Перевод Ubuntu
  • Тестирование
  • RSS лента

© 2012 Ubuntu-ru — Русскоязычное сообщество Ubuntu Linux.
© 2012 Canonical Ltd. Ubuntu и Canonical являются зарегистрированными торговыми знаками Canonical Ltd.

Ubuntu Logo Apache2 Ubuntu Default Page Как исправить?

Фотография

  • Пользователь
  • Pip
  • 26 сообщений
  • Отправлено 30 Сентябрь 2016 — 20:29

    This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

    If you are a normal user of this web site and don’t know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site’s administrator.

    Configuration Overview

    Ubuntu’s Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Ubuntu tools. The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if the apache2-doc package was installed on this server.

    The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:

    /etc/apache2/ |-- apache2.conf | `-- ports.conf |-- mods-enabled | |-- *.load | `-- *.conf |-- conf-enabled | `-- *.conf |-- sites-enabled | `-- *.conf
    • apache2.conf is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server.
    • ports.conf is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime.
    • Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively.
    • They are activated by symlinking available configuration files from their respective *-available/ counterparts. These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information.
    • The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration.

    Document Roots

    By default, Ubuntu does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.

    The default Ubuntu document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.

    Reporting Problems

    Please use the ubuntu-bug tool to report bugs in the Apache2 package with Ubuntu. However, check existing bug reports before reporting a new bug.

    Please report bugs specific to modules (such as PHP and others) to respective packages, not to the web server itself.

    Вылезла вот это понял одно что не ошибка.

    Как это исправить что бы зароботало

    Apache 2.4 открывает только Default page?

    Apache 2.4 на debian 8, добавлен виртуальный хост, при его открытии по доменному имени на localhost открывается без проблем, при попытке открыть с внешнего ip по доменному имени открывается apache default page, в hosts внешний ip добавлен, права на папку /var/www/example.com выставлены на www-data, в чем может быть причина?

    • Вопрос задан более трёх лет назад
    • 2057 просмотров

    Комментировать

    Решения вопроса 1

    Silver13

    Silver13 @Silver13 Автор вопроса

    Ищущий ответы

    Решено так: конфиг /etc/apache2/sites-available/example.com.conf
    первая строка VirtualHost *:80 —> VirtualHost example.com:80
    далее очистка кэша в браузере и ОК

    Ответ написан более трёх лет назад

    Комментировать

    Нравится Комментировать

    Не могу убрать дефолтную страницу Apache2 Ubuntu Default Page

    введите сюда описание изображения

    Установил wordpress-5.3-ru_RU на базе сервера Apache2. Но не могу убрать эту страницу. прочитал два ответа, на примерно похожий вопрос. тут и тут Поначалу я вообще не понял что происходит, после понял но было уже поздно ;_; ,прошло не меньше недели после установки и я даже забыл где лежат установленные файлы (с которыми машина работает). А также где лежит главная страница вордпресса, я также не знаю. Apache при установке создаёт папку /var/www/html и создаёт там файл index.html.

    В настройках nginx у вас дефолтный конфиг смотрит именно туда: root /var/www/html; Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; Поменяйте путь root /var/www/html; на тот, который вы хотите, или замените содержимое файла /var/www/html/index.html

    введите сюда описание изображения

    Как узнать, где лежит главная страница вордпресса ??

    Отслеживать
    задан 17 дек 2019 в 0:03
    2,907 7 7 золотых знаков 44 44 серебряных знака 87 87 бронзовых знаков

    2 ответа 2

    Сортировка: Сброс на вариант по умолчанию

    Настрой в apache приоритеты DirectoryIndex

    DirectoryIndex index.php, index.html 

    Отслеживать
    ответ дан 17 дек 2019 в 8:25
    5,243 2 2 золотых знака 11 11 серебряных знаков 25 25 бронзовых знаков

    Это надо в директории /var/www/html открыть файл index.html , и там прописать DirectoryIndex index.php, index.html , так ?? Я правильно расписал алгоритм ??

    17 дек 2019 в 13:33
    Это надо настроить аппач. Т.е. в его конфиге. Найти и исправить на то, что я показал.
    17 дек 2019 в 17:00

    я вас не понял. Что надо сделать . либо можете пожалуйста удалить ибо это не ответ, а скрытая компетенция как бы часть ответа, но не ответ. Это очень важно ибо я нацелен на результат а не вечные диалоги.

    26 дек 2019 в 16:48

    Это вполне ответ. Существует два способа настройки апача: один через конфиги сервера (этот способ SeVlad вам рекомендует), второй через правку файлов .htacess в каталоге /var/www или где у вас wwwroot (если такое предусмотрено). Вполне возможно, вам стоит ознакомиться с этой темой или задать отдельный вопрос, где и как правятся настройки апача. Скрытые компетенции у всех разные, кто-то может потребовать и объяснить, как файлы на хостинге по ftp править. Пожалуйста, старайтесь задавать конкретные атомарные вопросы. Пока у вас не атомарный вопрос но атомарный ответ.

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *