在NGIX中使用../退出目录的问题(静态页面)

时间:2019-04-15 03:11:22

标签: file nginx directory editing static-pages

我为一个客户制作了一个网站,该网站具有一系列网页并使用了.htaccess文件,因此查看者不必使用.html或.php扩展名。最初,我将其放在cPanel上运行良好,直到将文件交给客户端,然后他将其放在使用NGINX的网站上,但他收到目录问题。似乎NGINX或服务器将“ ../”重新路由到“ ./”而没有任何配置或警告,只是在静态网页上重新路由。 发生故障的网站为https://new.coderslight.com

工作版本为http://homemail.ml

我尝试过“ /../assets/css/bootstrap.css”和“ /assets/css/bootstrap.css”,但没有任何效果,我尝试重新上传文件,甚至删除.htaccess文件。


    <!--   Core JS Files   -->
    <script src="../assets/js/core/jquery.min.js" type="text/javascript"></script>
    <script src="../assets/js/core/popper.min.js" type="text/javascript"></script>
    <script src="../assets/js/core/bootstrap-material-design.min.js" type="text/javascript"></script>
    <script src="../assets/js/plugins/moment.min.js"></script>
    <script src="../assets/js/wow.min.js" type="text/javascript"></script>
    <script src="../assets/js/smoothscroll.min.js" type="text/javascript"></script>
    <!-- Plugin for the Datepicker, full documentation here: https://github.com/Eonasdan/bootstrap-datetimepicker -->
    <script src="../assets/js/plugins/bootstrap-datetimepicker.js" type="text/javascript"></script>
    <!--  Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
    <script src="../assets/js/plugins/nouislider.min.js" type="text/javascript"></script>
    <!--  Google Maps Plugin    -->
    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
    <!-- Control Center for Material Kit: parallax effects, scripts for the example pages etc -->
    <script src="../assets/js/material-kit.js?v=2.0.5" type="text/javascript"></script>
    <!-- Particles JS -->
    <script src="../assets/js/particles.js" type="text/javascript"></script>
    <script src="../assets/js/particlesconfig.min.js" type="text/javascript"></script>
    <!-- Custom Scripts -->
    <script src="../assets/js/bootstrap.js" type="text/javascript"></script>

渲染到



    <!--   Core JS Files   -->
    <script src="./assets/js/core/jquery.min.js" type="text/javascript"></script>
    <script src="./assets/js/core/popper.min.js" type="text/javascript"></script>
    <script src="./assets/js/core/bootstrap-material-design.min.js" type="text/javascript"></script>
    <script src="./assets/js/plugins/moment.min.js"></script>
    <script src="./assets/js/wow.min.js" type="text/javascript"></script>
    <script src="./assets/js/smoothscroll.min.js" type="text/javascript"></script>
    <!-- Plugin for the Datepicker, full documentation here: https://github.com/Eonasdan/bootstrap-datetimepicker -->
    <script src="./assets/js/plugins/bootstrap-datetimepicker.js" type="text/javascript"></script>
    <!--  Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
    <script src="./assets/js/plugins/nouislider.min.js" type="text/javascript"></script>
    <!--  Google Maps Plugin    -->
    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
    <!-- Control Center for Material Kit: parallax effects, scripts for the example pages etc -->
    <script src="./assets/js/material-kit.js?v=2.0.5" type="text/javascript"></script>
    <!-- Particles JS -->
    <script src="./assets/js/particles.js" type="text/javascript"></script>
    <script src="./assets/js/particlesconfig.min.js" type="text/javascript"></script>
    <!-- Custom Scripts -->
    <script src="./assets/js/bootstrap.js" type="text/javascript"></script>

我希望它只提供静态网页而不进行编辑,因为这就是静态网页的名称。取而代之的是,它只是删除了一堆“。”。并发送出去。

0 个答案:

没有答案