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

前端 未结 9 2327
误落风尘
误落风尘 2020-12-25 14:49

I\'m having small troubles and was wondering if someone can help me over the hump. I pulled a copy of a website down from Hostgator and I\'m trying to set it up on my local

9条回答
  •  长发绾君心
    2020-12-25 15:24

    Just solved this problem! I know the question is quite old, but I just had this same problem and none of the answers above helped to solve it.

    Assuming the actual domain name you want to use is specified in your c:\windows\System32\drivers\etc\hosts and your configurations in apache\conf\httpd.conf and apache\conf\extra\httpd-vhots.conf are right, your problem might be the same as mine:

    In Apache's htdocs directory I had a shortcut linking to the actual project I wanted to see in the browser. It turns out, Apache doesn't understand shortcuts. My solution was to create a proper symlink:

    In windows, and within the httdocs directory, I ran this command in the terminal:

    mklink /d ple  
    

    This created a proper symlink in the httpdocs directory. After restarting the Apache service and then reloading the page, I was able to see my website up :)

提交回复
热议问题