


Analyze the detailed method of writing a virtual directory for PHP in Apache_PHP tutorial
Step 1. First open the httpd.conf file in AppServApache2.2conf. Find inside:
LoadModule rewrite_module modules/mod_rewrite.so line, remove the "#" in front of it.
Step 2. Find: Include conf/extra/httpd-vhosts.conf and remove the "#" in front of it. (Very critical)
Then find:
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
Change it to:
Options FollowSymLinks ExecCGI Indexes
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
But it seems that step 2 is okay without setting it during my setup process. So I think it depends.
Step 3. Still find in this file:
DocumentRoot "E:/AppServ/www/", change it to the path we want to display by default. For example:
DocumentRoot "E:/AppServ/www/www/".
Also change:
Step 3 seems to be unnecessary. Alas, I don't understand here. During my setup. It seems that sometimes it is right not to set this. It seems like sometimes it would be wrong not to set this. It depends. It's better to set it up.
Step 4: Save the file. Then go to the httpd-vhost.conf file in AppServApache2.2confextra and open:
Change the content inside:
ServerAdmin webmaster@dummy-host2.x
DocumentRoot "C:/Apache2.2/docs/dummy-host2.x"
ServerName dummy-host2.x
ErrorLog "logs/dummy-host2.x-error.log"
CustomLog "logs/dummy -host2.x-access.log" common
This configuration is changed to:
ServerAdmin webmaster@dummy -host2.x
DocumentRoot "E:AppServwwwwww"
ServerName localhostes
ErrorLog "logs/dummy-host2.x-error.log"
CustomLog "logs/dummy-host2.x-access. log" common
Configure as many such virtual directories as there are.
Then save.
Step 5: Find the hosts file in C:WINDOWSsystem32driversetc, open:
Add at the end:
127.0.0.1 localhostes
You can specify multiple virtual names such as:
127.0.0.1 localhosts local.
Save.
You’re done.
Restart apache. Mine is appserv. I reboot. Then write in the browser:
http://localhostes. Try pressing Enter.
That’s interesting. If you don't think it looks good. Just replace localhostes with:
?
Isn’t that cool?

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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Top 10 virtual currency trading platforms in the 2025 cryptocurrency circle: 1. OKX, known for its high liquidity, low fees and abundant products; 2. Binance, one of the world's largest exchanges, with a huge user base; 3. Gate.io, a veteran exchange, safe and stable; 4. Kraken, focusing on professional traders, safe and compliant; 5. Huobi Global, a world-renowned, strong technical strength; 6. Coinbase, a leading exchange in the United States, easy to use compliance; 7. KuCoin, rich trading pairs, low fees.

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

CMS stands for Content Management System. It is a software application or platform that enables users to create, manage, and modify digital content without requiring advanced technical knowledge. CMS allows users to easily create and organize content

Virtual currency applications have become an important tool for modern investment and financial management. This article explores the advantages and disadvantages of virtual currency applications in depth, and focuses on the best applications available to Apple mobile phone users. We discuss the features, security measures and user experience of these apps to help readers make informed choices to get the best virtual currency apps that meet their specific needs.
