這裏需要幫助,需要一些指導和建議!apache2中子域名的動態配置
我知道這個問題已經有很多答案了,相信我,我已經搜索了很長時間了,但我仍然不知道該怎麼做。 因此,這裏是我的情況:
我有幾個網站(很多其實,用隨機的名字,不是真正隨機的,但我並不確定有名字),它是在WAMP的文件夾WWW,像這樣:
- www
|-ParentFolder1
| |-website1
| |-namerandom1
| |-anotherrandomname1
| |- ....... etc
|
|-ParentFolder2
| |-website2
| |-namerandom2
| |-anotherrandomname2
| |- ....... etc
|
我已經定義並在服務器上配置了2個使用domain.tld(我沒有配置它,別人對我公司做的)
,我需要盡一切網站域名爲這樣的工作:
website1.domain1.tld
namerandom1.domain1.tld
anotherrandomname1.domain1.tld
... etc
website2.domain2.tld
namerandom2.domain2.tld
anotherrandomname2.domain2.tld
...
我完全失去了,我不知道在哪裏以及如何開始
無論如何。
隨着我讀到的有關子域主題的所有內容,我認爲我需要通過Apache2的VirtualHost配置使其工作...... 但我不知道如何管理網站名稱這一事實是動態的... 而且,我是否需要在DNS文件上配置CNAM? (子域)還是VirtualHost夠了?
任何幫助,將不勝感激, 感謝你的時間
謝謝!感謝您在閱讀Apache文檔時的答案,我今天能夠對其進行配置 – Hellow