我有2个域,希望在1台服务器上托管。
我想知道如何只能使用Filezilla添加/删除/更改我的网站。
您需要像root
在Filezilla中一样登录才能访问配置文件。使用Apache,它们将位于中/etc/apache2/sites-available
。您还需要符号链接或链接cp
到/etc/apache2/sites-enabled
它们,才能激活它们。
将的两个新文件作为基础default
,更改域和位置,将其删除default_server
并上传。
他们应该看起来像这样:
<VirtalHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/html_public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/example.com/html_public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow, deny
allow form all
</Directory>
ErrorLog /var/www/example/logs/error.log
LogLevel warn
CustomLog /var/www/example/logs/access.log combined
</VirtualHost>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句