我在debian linux服务器上有一个网站。 我的虚拟主机指向一个文件夹(/ var / www / my-first-website), 我想将目的地更改为另一个文件夹(我的第二个网站) 每次更改后我都会重启服务器: service apache2 restart 我删除了dns缓存:service nscd restart,甚至/etc/ini.d/networking restart 但它并没有影响,它仍然是:var / www / my-first-website
有人有任何想法吗? 我确信我的虚拟主机中没有关于/ my-first-website的任何信息。
ServerAdmin webmaster@localhost
ServerName www.my-website.com
ServerAlias www.my-website.com
DocumentRoot /var/www/my-second-website
<Directory /var/www/my-second-website>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
#Sécurisation du site
<IfModule mod_php5.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>
#Régles de réécriture
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^api/ index_rest.php [L]
RewriteRule ^index_rest\.php - [L]
RewriteRule ^([^/]+/)?content/treemenu.* index_treemenu\.php [L]
RewriteRule ^var/([^/]+/)?storage/images(-versioned)?/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^var/storage/packages/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/design/standard/images/favicon\.ico - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]
RewriteRule ^Sitemap.xml - [L]
RewriteRule ^BingSiteAuth.xml - [L]
RewriteRule ^w3c/p3p\.xml - [L]
RewriteRule .* index\.php
RewriteRule ^/css/.*\.css - [L]
RewriteRule ^/js/.*\.js - [L]
</IfModule>
</Directory>
# Environment.
# Possible values: "prod" and "dev" out-of-the-box, other values possible with proper configuration
# Defaults to "prod" if omitted
SetEnv ENVIRONMENT "prod"
# Whether to use Symfony's ApcClassLoader.
# Possible values: 0 or 1
# Defaults to 0 if omitted
#SetEnv USE_APC_CLASSLOADER 0
# Prefix used when USE_APC_CLASSLOADER is set to 1.
# Use a unique prefix in order to prevent cache key conflicts
# with other applications also using APC.
# Defaults to "ezpublish" if omitted
#SetEnv APC_CLASSLOADER_PREFIX "ezpublish"
# Whether to use debugging.
# Possible values: 0 or 1
# Defaults to 0 if omitted, unless ENVIRONMENT is set to: "dev"
#SetEnv USE_DEBUGGING 0
# Whether to use Symfony's HTTP Caching.
# Disable it if you are using an external reverse proxy (e.g. Varnish)
# Possible values: 0 or 1
# Defaults to 1 if omitted, unless ENVIRONMENT is set to: "dev"
#SetEnv USE_HTTP_CACHE 1
# Defines the proxies to trust.
# Separate entries by a comma
# Example: "proxy1.example.com,proxy2.example.org"
# By default, no trusted proxies are set
#SetEnv TRUSTED_PROXIES "127.0.0.1"
# Everything below is optional to improve performance by forcing
# clients to cache image and design files, change the expires time
# to suite project needs.
#Pour les logs
ErrorLog ${APACHE_LOG_DIR}/logOfficiel/errorgm.log
LogLevel crit
CustomLog ${APACHE_LOG_DIR}/logOfficiel/accessgm.log combined
ServerSignature Off