找不到该服务器上未找到所需的URL。 XAMPP错误

发布于 2025-02-08 05:59:29 字数 1297 浏览 0 评论 0 原文

我想运行一个简单的html文件

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" type="text/css" href="Untitled.css">

    <title>Connexion</title>
</head>
<body>
    <div class="container">
        <form action="" method="post" class="c">
            <p class="l-text" > login</p>
            <div class="i">
                <input type="text" placeholder="username" name="username" required>
            </div>
            <div class="i">
                <input type="password" placeholder="password" name="pass" required>
            </div>
        </form>
    </div>
</body>
</html>

位于“ c:\ xampp \ htdocs \ chou” 中,我得到此错误

当我运行Apache时,我会得到以下错误

i.sstatic.net/ofz6g.png“ rel =“ nofollow :我更改听80 听8080

我在这里也尝试了很多解决方案,但是错误仍然相同

I want to run a simple html file

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" type="text/css" href="Untitled.css">

    <title>Connexion</title>
</head>
<body>
    <div class="container">
        <form action="" method="post" class="c">
            <p class="l-text" > login</p>
            <div class="i">
                <input type="text" placeholder="username" name="username" required>
            </div>
            <div class="i">
                <input type="password" placeholder="password" name="pass" required>
            </div>
        </form>
    </div>
</body>
</html>

located in "C:\xampp\htdocs\chou" and I get this error

enter image description here

when I run apache I get the following error enter image description here

Ps: I've change Listen 80 to Listen 8080

I've also tried so many solutions here but the error still the same

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情独悲 2025-02-15 05:59:29

您可能会运行另一个Apache实例。尝试访问http:// localhost,看看XAMPP仪表板是否打开。如果不是这样,我们可以安全地假设您仍在运行其他Apache实例(c:// appserv/apache24)。

a)打开任务管理器并搜索Apache24进程。如果有一个,那就结束它。然后重试以启动XAMPP Apache服务器。

或者,如果您不需要该Apache服务器,则可以从系统中卸载它。

如果XAMPP仪表板通过访问Local -Host URL出现,则您正在运行XAMPP服务器。 (请确保您只安装了一台XAMPP服务器)
如果是这样,

a)您是否要访问“ http:// localhost/chou”,然后出现此错误?

  • 然后,您可能有一个重定向脚本或带有重定向规则的.htaccess文件。在网站根中。

b)在HTDOCS目录中存在此文件(“ chou/connecter.php”)。

c)如果XAMPP Apache在端口8080上收听,那么您是否尝试打开http:// localhost:8080/chou/connecter.php,

如果上述没有任何作用,请提供更多详细信息。

You may have another apache instance running. Try to visit http://localhost and see whether the xampp dashboard opens up. If not then we can safely assume that you are still running your other apache instance (c://AppServ/Apache24).

a) Open the task manager and search for a apache24 process. If there's one then end it. And then retry to start the xampp apache server.

Or if you don't need that apache server, you can uninstall it from the system.

If the xampp dashboard comes up by visiting the localhost url, then you are running the xampp server. (please make sure that you have only one xampp server installed)
if so,

a) Are you trying to visit "http://localhost/chou", and then this error comes up?

  • Then you may have a redirect script or a .htaccess file with some redirect rule. in the site root.

b) Does this file ("chou/connecter.php" ) exists in the htdocs directory.

c) If the xampp apache is listening on port 8080, Then Did you try to open http://localhost:8080/chou/connecter.php

If nothing above works, Please provide more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文