サブディレクトリ (/var/www/vhosts/vps.url.com/httdocs/blog.
このサイト (vps.url/blog) を指すドメインがあるため、ブラウザーにドメイン URL を書き込むと VPS にリダイレクトされますが、vps.url/blog という URL が表示されます。
この方法でapache2仮想ホストでマスクしようとしました:
<VirtualHost *:7080>
ServerAdmin webmaster@localhost
ServerName domain.es
ServerAlias www.domain.es
DocumentRoot /var/www/vhosts/vps.url.com/httpdocs/domain/
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
domain.es を表示したいときに vps.url.com/domain が表示されるため、これは機能しません。
事前に感謝し、私の悪い英語を許してください。