ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### wamp64\bin\apache\apache2.4.33\conf\extra\httpd-vhosts.conf ``` # Virtual Hosts # <VirtualHost *:80> ServerName localhost DocumentRoot d:/wamp64/www <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> # <VirtualHost *:80> ServerName tv-dingtalk.com DocumentRoot d:/wamp64/www/tv-dingtalk/public # 设置允许跨域 (需要开启 mod_headers.so 模块) 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo (需要开启 mod_rewrite.so 模块) url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName gj-shop.com DocumentRoot d:/wamp64/www/gj-shop/ # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName lipin.com DocumentRoot d:/wamp64/www/lipin/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName fu.com DocumentRoot d:/wamp64/www/FansUnion/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName code.com DocumentRoot d:/wamp64/www/code/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName zb.com DocumentRoot d:/wamp64/www/zb/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName tenpower.com DocumentRoot d:/wamp64/www/tenpower/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName tang-h5.com DocumentRoot d:/wamp64/www/tang-h5 # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> # [Apache设置反向代理解决js跨域问题](https://segmentfault.com/a/1190000007352990?_ea=1318620) ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /api http://www.hztczm.com </VirtualHost> <VirtualHost *:80> ServerName school.com DocumentRoot d:/wamp64/www/school/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName hgmsw.com DocumentRoot d:/wamp64/www/hgmsw/public # 设置允许跨域 参考:http://blog.csdn.net/linxiangyao/article/details/6107617 Header add Access-Control-Allow-Origin * Header add Access-Control-Allow-Headers "Content-Type" # 解决mod_rewrite时pathinfo url参数中不能带有特殊字符问题 参考:http://www.2cto.com/os/201409/338511.html AllowEncodedSlashes On <Directory "d:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> ``` last update:2017-12-18 17:45:15