【PHP】phpstudy vhosts.conf 配置】的更多相关文章

#Listen 876 <VirtualHost *:876> ServerName localhost DocumentRoot "D:\phpStudy\PHPTutorial\WWW" DirectoryIndex index.html index.php <Directory "D:\phpStudy\PHPTutorial\WWW"> Options FollowSymLinks ExecCGI AllowOverride All…
<VirtualHost _default_:80>DocumentRoot "D:\phpStudy\WWW" <Directory "D:\phpStudy\WWW"> Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory></V…
1.域名解析(DNS) 找到C:\Windows\System32\drivers\etc目录下的hosts文件,在里面进行添加对应的内容…
linux备份nginx.conf文件举例: cp /usr/local/nginx/nginx.conf /usr/local/nginx/nginx.conf-20171111(日期) 在进程列表里 面找master进程,它的编号就是主进程号. ps -ef | grep nginx 查看进程 cat /usr/local/nginx/nginx.pid 每次修改完nginx文件都要重新加载配置文件linux命令: /usr/local/nginx -t //验证配置文件是否合法 若ngin…
1.首先在 httpd.conf里面修改几个地方 找到 #LoadModule ssl_module modules/mod_ssl.so 去掉前面的# Include conf/vhosts.conf  在这一行下面增加一行 Include conf/vhosts_ssl.conf 然后去conf文件夹里面创建vhosts_ssl.conf 2.在vhosts_ssl.conf里面写入 Listen 443 SSLStrictSNIVHostCheck off SSLCipherSuite A…
https://blog.csdn.net/weisubao/article/details/43536723 解决方案:虚拟主机是设置在httpd-vhosts.conf还是vhosts.conf还是httpd.conf? 答案是:都可以.但是推荐在vhosts.conf中设置. ——官方文档的举例是在httpd.conf中设置的. ——百度一下会发现99%都是在httpd-vhosts.conf中设置的.但是这种设置会存在一些问题,比如设置后localhost打不开等等问题,虽然解决方案简单…
phpstudy一个域名配置两个网站(一个是thinkphp5,一个是原生php) 一.总结 一句话总结:把原生php的网站直接放到thinkphp5的public目录下可以解决以stem.aaaa.hk\**方式访问原生网站会被当成thinkphp子模块的问题 最后的解决方法(别人想出来的): 把原生php的网站直接放到thinkphp5的public目录下 以stem.aaaa.hk访问thinkphp5的那个网站 以stem.aaaa.hk\** 来访问即可 1.thinkphp5开发的网…
在http的功能里添加log_format模块,内容如下: log_format main escape=json '{ "@timestamp": "$time_iso8601", ' '"remote_addr": "$remote_addr",' '"request_time": "$request_time",' '"upstream_response_time&quo…
apache 虚拟主机详细配置:http.conf配置详解 Apache的配置文件http.conf参数含义详解 Apache的配置由httpd.conf文件配置,因此下面的配置指令都是在httpd.conf文件中修改. 主站点的配置(基本配置) (1) 基本配置: ServerRoot "/mnt/software/apache2" #你的apache软件安装的位置.其它指定的目录如果没有指定绝对路径,则目录是相对于该目录. PidFile logs/httpd.pid #第一个ht…
最近找了个不错的sysctl.conf的优化参数,在网站响应上已经算不错了的,time超时连接据说几乎为0了.  系统:centos 5.x sysctl.conf配置参数: kernel.msgmnb = kernel.msgmax = kernel.shmmax = kernel.shmall = net.ipv4.ip_forward = net.ipv4.conf. net.ipv4.conf. kernel.sysrq = kernel.core_uses_pid = net.ipv4…