apache 修改端口号 修改根目录 建立多个网站,apache端口号
<strong><span>修改apache端口号<br /></span></strong><br /><span>选择Apache下的httpd.conf,查找:Listen,你会看到</span><br /><br /><span>#Listen 12.34.56.78:80</span><br /><span>Listen 80</span><br /><span>把80改成90,保存就好了</span>
修改WampServer的默认端口
http://blog.csdn.net/zaocha321/article/details/7627110
修改apache网站根目录
http://xmeix.blog.163.com/blog/static/321028522012102955141433/ 万变不离其宗,找到apache的目录,修改conf下的httpd.conf文件,1·修改其中的DocumentRoot:
DocumentRoot "F:/web/www"
2·搜索(This should be changed to whatever you set DocumentRoot to)这句话,找到其下2行的
Directory改为:
重启apache即可 建立多个网站
打开http.conf <br />1,ServerName 127.0.0.1 修改成ServerName 你服务器ip <br />2,#NameVirtualHost * 修改成"NameVirtualHost 你服务器ip" <br />3,在文件最后面有虚拟主机格式, <br />#<VirtualHost *> <br /># ServerAdmin [email]admin@minidx.com[/email] <br /># DocumentRoot /www/httpd/html/minidx.com <br /># ServerName minidx.com <br /># ErrorLog logs/minidx.com-error_log <br /># CustomLog logs/minidx.com-access_log common <br />#</VirtualHost> <br />添加: <br /><VirtualHost 你服务器ip> <br /> DocumentRoot usr/local/www/ (默认网站路径)<br /> ServerName 你服务器ip <br /></VirtualHost> <br /><VirtualHost 你服务器ip> <br /> DocumentRoot usr/local/www/minidx.com/ (网站路径)<br /> ServerName minidx.com (你的域名)<br /></VirtualHost> <br /><VirtualHost 你服务器ip> <br /> DocumentRoot usr/local/www/ntt.cc/ (网站路径)<br /> ServerName ntt.cc (你的第二个域名)<br /></VirtualHost><br /><br />http://blog.csdn.net/wxh0417/article/details/6152649<br />http://jingyan.baidu.com/article/363872ecec3e496e4ba16fdc.html<br />http://blog.sina.com.cn/s/blog_6f6b4c3c0100nei5.html
1.找到Apache安装目录下conf目录下的httpd.conf文件(即d:\Apache\conf\httpd.conf)。打开它。
2.找到“Listen80”,紧接着Listen的数字就是端口号,我们改为“Listen 8080”。 修改为其它未使用的端口号也行。
3. 重新启动Apache,使新的配置生效。可以使用右下角状态栏的“Apache Serive Monitor”启动apache。
也可以点击“开始”>"运行>输入cmd>回车>定位到apache安装目录下到bin目录,然后输入
“httpd–k start”。
用文本编辑工具打开该文件。查找 DocumentRoot有这么一行DocumentRootC:/Program Files/Apache Group/Apache2/htdocs这就是你网站的根目录,你可以修改,也可以用默认的.如果改,还要修改下面这项,否则可能会出现 403 错误查找?????? This should be changed to whatever you set DocumentRoot to在它下面两行有

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
