English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Konfigurationsmethode für mehrere Domains unter Windows WAMP

Einleitung

Dieser Artikel wird die Konfigurationsmethode für mehrere Domains unter Windows WAMP im Detail beschreiben

Ändern Sie die hosts-Datei

Der Pfad zur hosts-Datei: Systempartition→“windows”→“System32”→“drivers”→“etc”

Öffnen Sie die Datei hosts und fügen Sie einen neuen Eintrag hinzu:127.0.0.1 php.xiaohuochai.com

启动apache虚拟主机功能

Start the Apache virtual host feature

Open the Apache httpd.conf file+Use Ctrl

f Search for vhost

1There are two modifications:/Search for #LoadModule vhost_alias_module modules

2Search for #Include conf/extra/httpd-Remove the # from vhosts.conf

This is equivalent to uncommenting, thus completing the opening of the virtual host service

Modify the vhosts configuration file

<VirtualHost *:80>
  DocumentRoot "d:/wamp/www/public"
  ServerName php.xiaohuochai.com
  ErrorLog "logs/xiaohuochai.com-error.log"
  CustomLog "logs/xiaohuochai.com-access.log" common
</VirtualHost>

Modify httpd-Add the following record to the vhosts.conf configuration file

Finally, restart the apache service and enter http: in the browser//php.xiaohuochai.com/Normal access indicates successful configuration

This article on the configuration operation method based on Windows WAMP multi-domain names is all the content that the editor shares with everyone. I hope it can serve as a reference for everyone, and I also hope everyone will support and cheer for the tutorial.

Declaration: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously, and this website does not own the copyright, does not edit manually, and does not assume relevant legal liabilities. If you find any content suspected of copyright infringement, please send an email to: notice#w3Please report via email to codebox.com (replace # with @) when reporting, and provide relevant evidence. Once verified, this site will immediately delete the content suspected of infringement.

Empfohlene Artikel