亚洲免费在线视频-亚洲啊v-久久免费精品视频-国产精品va-看片地址-成人在线视频网

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

Apache alias虛擬目錄設(shè)置問(wèn)題

瀏覽:101日期:2024-06-29 18:16:34

問(wèn)題描述

apache 設(shè)置虛擬目錄,進(jìn)入到了index.html頁(yè)面,但是無(wú)法訪問(wèn)到網(wǎng)頁(yè)內(nèi)容中引用了別的文件夾的內(nèi)容,包括css,js,圖片等文件;

apache版本:httpd-tools-2.2.15-47.el6.centos.4.i686

httpd -M :...actions_module (static)alias_module (static)rewrite_module (static)...httpd.conf:<IfModule alias_module> # # Redirect: Allows you to tell clients about documents that used to # exist in your server’s namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # Alias /zh '/data/wwwroot/zh' <Directory '/data/wwwroot/zh'>Options Indexes FollowSymLinksAllowOverride NoneOrder allow,denyAllow from all </Directory> # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a <Directory> section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing '/' apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ '/usr/local/apache/cgi-bin/'</IfModule>index.html<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><title>Miaos’ Photos</title><style>*{margin:0px; padding:0px; }#main{position:relative; }.box{padding:15px 0px 0px 15px; float:left; }.pic{padding:10px; border:1px solid #ccc; border-radius:5px; box-shadow:0 0 8px #ccc;}.pic img{width:195px;; height:auto}</style><script type='text/javascript' src='http://m.lshqa.cn/wenda/script.js'></script></head><body> <p id='main'> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/1.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/2.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/3.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/4.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/5.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/6.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/7.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/8.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/9.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/10.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/11.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/12.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/13.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/1.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/2.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/3.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/4.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/5.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/6.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/7.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/8.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/9.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/10.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/11.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/12.jpeg'/> </p> </p> <p class='box'> <p class='pic'> <img src='http://m.lshqa.cn/wenda/images/13.jpeg'/> </p> </p> </p></body></html>

網(wǎng)頁(yè)訪問(wèn)結(jié)果:

Apache alias虛擬目錄設(shè)置問(wèn)題

能進(jìn)入到虛擬目錄中的index.html文件,但是里面的圖片全都無(wú)法訪問(wèn),js效果也沒(méi)有。目錄設(shè)置的都是相對(duì)目錄,同樣的配置在另一臺(tái)虛擬機(jī)中可以完美訪問(wèn)

求教各位熟悉apache的前輩,這是怎么回事!

問(wèn)題解答

回答1:

你f12看一下那些圖片,js引用的路徑實(shí)際是什么

回答2:

重裝apache可以解決;原來(lái)的apache是用網(wǎng)上的一個(gè)LAMP,yum安裝的,應(yīng)該有點(diǎn)問(wèn)題。。。。。。

相關(guān)文章:
主站蜘蛛池模板: 国产成人精品999在线观看 | 国产色视频在线观看免费 | 免费高清毛片在线播放视频 | 私人玩物福利视频 | 久草在线中文视频 | 欧美特级午夜一区二区三区 | 不卡一区二区在线 | 国产2页 | 久久综合狠狠综合狠狠 | 日本欧美一区二区三区片 | 久久福利青草狠狠午夜 | 99re这里只有精品99 | 免费观看情趣v视频网站 | 黄色三区 | 欧美一级毛片免费网站 | 亚洲美女在线视频 | 国产欧美日韩在线观看一区二区三区 | 香蕉超级碰碰碰97视频在线观看 | 久久久久琪琪精品色 | 手机看片在线 | 国产欧美日本在线观看 | 免费国产视频在线观看 | 一级黄色香蕉视频 | 91热久久免费频精品动漫99 | 交视频在线观看国产网站 | 日本一区二区三区不卡视频中文字幕 | 欧美一级大片免费看 | 天堂一区二区三区精品 | 手机看片久久高清国产日韩 | 成人18免费网| 特色一级片 | 国产成人免费永久播放视频平台 | 成人软件网18免费视频 | 国产一区二区三区亚洲欧美 | 国产香蕉国产精品偷在线观看 | 国内久久精品 | 欧美日韩精品在线视频 | 久久久精品免费热线观看 | 亚洲国产成+人+综合 | 99精品久久久久久久 | 国产欧美久久久精品影院 |