Today, in order to do the project , stay Apache The project domain name is configured in , Successful visit . But suddenly I found that I wanted to visit localhost All of a sudden The requested URL / was not found on this server.

  

   In this case, I checked on the Internet because I opened httpd.conf  In file Include conf/extra/httpd-vhosts.conf As a result of , Just comment it out , I tried it, and it did , But my virtual domain name has to be .

  

   So I want to give localhost  Configure virtual domain name , But after matching, it didn't have the expected effect, and still can't visit .

  

   Think about it. ,localhost  stay Apache It must be configured in the configuration , Or it's done Apache How can I visit my www The root directory of ? So it's in  httpd.conf  In the configuration file of  localhost , I found it  Apache  It points to   My root directory , So you can access it by annotating it !

  

The requested URL / was not found on this server——Apache Unable to access after configuring the virtual domain name localhost More articles about

  1. 404 Not Found The requested URL * was not found on this server

    1. Take from SVNcheckout The next code is built up .CakePHP+mysql. Change the database configuration . 2. Configure the virtual host , I found that I couldn't visit /user/login This URL, Report this error :404 Not Foun ...

  2. Not Found The requested URL / was not found on this server.

    http://www.wanysys.cc/coding/php/800.html I'm doing local work today PHP When the project is , I want to put before wampserver The access mode of local virtual server environment is changed to local localhost visit ...

  3. The requested URL / was not found on this server

    The requested URL / was not found on this server. reason : Not opened Apache The rewriting function of #LoadModule rewrite_module modules ...

  4. Yii2.0 solve “the requested URL was not found on this server” problem

    After you get down Yii frame , After configuring the route urlManager after , The routing page will report an error “the requested URL was not found on this server”,url Similar to this “ht ...

  5. php ci Report errors Object not found! The requested URL was not found on this server. If you entered the URL manually please check

    Object not found! The requested URL was not found on this server. The link on the referring page see ...

  6. Object not found! The requested URL was not found on this server.... Error reporting solutions

    The server (centos6.5) lnmp An error is as follows Object not found! The requested URL was not found on this server. The link ...

  7. wampserver Of Apache Start error prompt :The requested URL / was not found on this server.

    open localhost The following error is displayed reason : I configured the virtual host before , So the server is accessed from a virtual environment ,localhost You can't visit resolvent : open httpd.conf The configuration file , take Include conf/e ...

  8. Has not been configured to Web project . Designated local IIS URL http://localhsst/.. To open a project , You need to configure the virtual directory . Do you want to create the virtual directory now solve

    1. edit .csproj file 2. modify  UseIIS The node is changed to false, Open the program again

  9. git clone The emergence of error: The requested URL returned error: 401 Unauthorized

    error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/.. ...

Random recommendation

  1. Log4net Wrong tune in

    In the use of log4net when , I think the most troublesome thing is the configuration file , For ease of use , I have to prepare a complete configuration file scheme first , Tested the output to text . Console .windows event .SQL Server There's nothing wrong with the database , But output to o ...

  2. loj 1013(LCS+ Memory search )

    Topic link :http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=25839 Ideas : The first question can be solved quickly , The length of two strings -LCS, however ...

  3. MySQL Master slave configuration problems

    Some time ago, offline databases needed to build master-slave databases . Because I don't want to back up the database , We plan to clone the database virtual machine directly to a new one , Then configure master-slave synchronization . Never done that before , So I haven't encountered any problems , Today, I sorted out the problems I met . 192.168.3. ...

  4. 【MySQL】insert Batch insert optimization scheme

    For some systems with a large amount of data , The problem that the database faces is that the query efficiency is low , There is also a long time of data warehousing . Especially like a reporting system , The time spent on data import can be as long as several hours or more than ten hours every day . therefore , It makes sense to optimize database insertion performance . ...

  5. python call hive Query implementation is similar to stored procedure

    demand : The definition structure of all tables in the data warehouse is saved to a new file , After saving, it looks like the following data , Duplicate data only remains 7 In the month of ****************ods_log_info*****************lid st ...

  6. About ajax The short polling problem of

    Take advantage of the front desk ajax Keep asking the background server , The background server constantly checks whether the information in the database has changed . If the change returns the message to the front desk , And do something The front desk ajax Code Be careful to add cache This one , If it is post Standardization of requests , You can get rid of it . ...

  7. Java 9 reveal (1.Java Introduction )

    writing by / Lin bentuo In the first part , The main contents are as follows : JDK 9 What is included System requirements for running code How to install NetBeans 1 JDK Introduce JDK 9 yes Java The ninth major release of the development kit , meter ...

  8. Java Concurrent framework ——AQS Blocking queue management ( One )—— spinlocks

    We know that a thread will be blocked and queued after an attempt to acquire a lock fails , What kind of queue is it ? How to manage this queue ? Let's talk about CHL Node FIFO queue .  Talking about CHL Node FIFO Before the line , Let's first analyze this kind of team ...

  9. Hadoop/Spark Problems or precautions that may be encountered in the process of environmental operation

    1. When the cluster starts , From node's datanode Has not started Question why : From node's tmp/data In the configuration file under clusterID With the master node tmp/data In the configuration file under clusterID atypism , Cause the cluster to start ...

  10. turn jmeter Use IP Deception stress test

    jmeterIP Cheat more IP Recently in use jmeter For stress testing, you need to use something like loadrunner Of IP Deception function , After asking Du Niang for help, she decided to study patiently again jmeter Official script files , Finally found out in jmeter2.5 ...