ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

wampee如何配置网站

wampee如何配置网站 1.Wampee-3.1.0\bin\apache\apache2.4.33\conf\extra\httpd-vhosts.conf 这里可以配多个域名修改对应的端口和网站的源码指向VirtualHost *:88ServerAdmin webmasterdummy-host.example.comDocumentRoot E:/Wampee-3.1.0-beta-3.5/www/zw/publicServerName cc.comServerAlias cc.comErrorLog E:/wwwroot/zw_new/logs/1.log# CustomLog logs/dummy-host.example.com-access.log common/VirtualHostVirtualHost *:89# ServerAdmin webmasterdummy-host2.example.comDocumentRoot E:/Wampee-3.1.0-beta-3.5/www/1688order/server/publicServerName cc.localhostErrorLog E:/wwwroot/zw_new/logs/2.log# CustomLog logs/dummy-host2.example.com-access.log common/VirtualHost2.在E:\Wampee-3.1.0-beta-3.5\bin\apache\apache2.4.33\conf\httpd.conf下配置对应的监听端口号和服务Listen 0.0.0.0:81Listen [::0]:81Listen 127.0.0.1:88Listen 127.0.0.1:89ServerName localhost:81ServerName cc.com:88ServerName cc.localhost:89Include conf/extra/httpd-vhosts.conf 同时这一行是开启的3.开启伪静态.搜索找到“LoadModule rewrite_module modules/mod_rewrite.so”这一行去掉前面的“#”3.找到“AllowOverride None”改为“AllowOverride All”新建.haccess文件放在当前网站入口文件出,fastadmin和likeshop是在public下下面是配置规则IfModule mod_rewrite.cOptions FollowSymlinks -MultiviewsRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]/IfModuleenv配置环境记得修改数据库的端口号是3307app_debug true[database]charset utf8mb4database novysseydebug 1hostname 127.0.0.1hostport 3307password prefix ls_type mysqlusername root[project]admin_name 多商户后台env_name 多商户后台file_domain lv.localhost:82ws_domain wss://127.0.0.1
返回列表