Home Backend Development PHP Tutorial 建立虚拟主机以后,如何让localhost不指向虚拟主机目录

建立虚拟主机以后,如何让localhost不指向虚拟主机目录

Jun 13, 2016 pm 01:07 PM
localhost quot xampp

建立虚拟主机以后,怎么让localhost不指向虚拟主机目录?
建立虚拟主机以后,怎么让localhost不指向虚拟主机目录?

------解决方案--------------------
httpd.conf
DocumentRoot "E:/XAMPP/xampp/htdocs/mainDir"

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why can't mysql connect to localhost? Why can't mysql connect to localhost? Aug 10, 2023 pm 02:55 PM

The reasons why mysql cannot connect to localhost are that the mysql service is not started, the mysql port is occupied, and there is a problem with the MySQL configuration file. Detailed introduction: 1. In Windows systems, you can open the service manager by entering "services.msc" at the command prompt, then find the mysql service and ensure that its status is "Running". In Linux systems, you can use the "services.msc" command to check and control the service status; 2. You can use the open command and so on.

What should I do if localhost cannot be opened? What should I do if localhost cannot be opened? Nov 07, 2023 pm 02:47 PM

Solution: 1. Check the running status of the server and make sure it is listening on the correct port; 2. Try to temporarily disable the firewall or security software, and then try to access localhost again; 3. Check the hosts file of the operating system to ensure that localhost is resolved correctly ; 4. Try to restart the network adapter or reconfigure the network connection; 5. Try to change the port used by the local server, or close other programs that occupy the same port; 6. Try to manually add the corresponding IP address and domain name in the hosts file, etc.

What does linux localhost mean? What does linux localhost mean? Mar 14, 2023 am 09:53 AM

linux localhost means "computer host name". The host name is used to identify an independent computer on the network; the root in "root@localhost" represents the currently logged-in user. In Linux, the administrator account is root, and the user is root. Log in to the Linux machine as a user.

XAMPP encountered PHP execution exception? Troubleshooting tips to help XAMPP encountered PHP execution exception? Troubleshooting tips to help Mar 12, 2024 pm 03:21 PM

In the technical field, XAMPP is a commonly used development environment tool. It integrates software such as Apache, MySQL, PHP and Perl, and can help developers quickly build a local server environment. However, sometimes when using XAMPP, you will encounter PHP execution exception problems, which may cause problems in development work. This article will share some troubleshooting techniques to help readers solve the problem when XAMPP encounters PHP execution exceptions. 1. Check the PHP error log. First, when the P in XAMPP

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

The solution to the problem that XAMPP cannot execute PHP is revealed The solution to the problem that XAMPP cannot execute PHP is revealed Mar 12, 2024 pm 06:39 PM

The solution to the problem that XAMPP cannot execute PHP is revealed. Specific code examples are needed. XAMPP is a very commonly used integrated development environment tool during website development or local testing. However, sometimes during the installation and configuration of XAMPP, you may encounter the problem that XAMPP cannot execute PHP, resulting in the website being unable to run normally. This article mainly provides a detailed introduction to the solution to the problem that XAMPP cannot execute PHP, including specific code examples. I hope it can help people who encounter similar problems.

Create a local web server using PHP and XAMPP Create a local web server using PHP and XAMPP May 11, 2023 pm 05:19 PM

With the continuous development of computer technology, the use of Web servers has become an indispensable part of people's daily lives. For programmers or web developers, using a local server is essential when developing and testing websites. PHP is a very popular scripting language for web development, and XAMPP is a commonly used server suite among developers. In this article, we will explain how to create a local web server using PHP and XAMPP. 1. Download and install XAMPP before starting to create this

Mastering these three comprehensive development tools is essential for PHP development Mastering these three comprehensive development tools is essential for PHP development Jan 13, 2024 pm 01:13 PM

Inventory of essential tools for PHP development: Mastering these three integrated development tools requires specific code examples. With the rapid development of the Internet, PHP, as a programming language widely used to develop websites and web applications, has attracted more and more developers. love. In order to improve development efficiency and quality, it is essential to use appropriate integrated development tools. In this article, we will take stock of the three necessary tools for PHP development and provide specific code examples for each tool to help developers better master and apply them. The first tool: PHPSt

See all articles