Eu estou tentando configurar o apache e criei um diretório em / srv / www porque eu quero minha pasta raiz padrão lá em vez de / var / www. Eu abri o arquivo de configuração em / apache2 / sites-available (e vinculei corretamente os sites habilitados para este arquivo de configuração) e é assim:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
serverAlias extracurricular.com
ServerAdmin [email protected]
DocumentRoot /srv/www/extracurricular.com
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks Mult
iViews
AllowOverride None
Order allow,deny
allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values are: debug, info, not ice, warn, error, crit, alert, emerg
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/extracurricular.com_access.log combined
</VirtualHost>
Meu ip para meu vps é: link
Está apenas me levando para a pasta / var / www e não /srv/www/extracurricular.com (meu nome de domínio). Por que isso acontece?
P.S. Eu tenho um simples index.html no meu diretório /extracurricular.com