注意!
ubuntu下的配置文件與其他與其他系統(tǒng)不同,所以我在網上找不到合適的教程,在不開啟虛擬主機的情況下,兩個網址都可以轉到服務器的目錄下
希望大佬能夠盡量詳細一點解釋這個問題謝謝
The configuration under ubunutu is the same as others, except for the ubuntu configuration file /etc/apache2/apache2.conf
都是include
other configuration files. For example,
# 載入模塊已經配置
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# 配置虛擬主機
InludeOptional sites-enabled/*.conf
Referencesites-enable/
里面的default.conf
Write a configuration file and place it in this directory.
Actually, just follow the tutorials on the Internet. However, in order to make it more convenient for everyone, Ubuntu has reorganized the structure of the configuration file. It is not necessary to write them all in the same configuration file.
For example, if you want to load a new module, just mods-available
里面的對應文件復制到mods-enabled/
.