6月23日 用 centos 架apache 網頁伺服器會遇到的困難

如果用 centos 內建的apche 架的話
應該是會看到歡迎頁面,就算你在 /var/www/html 下面 放了你自己的網頁,但是就是連不到,永遠都是歡迎頁面
這時你要去 /etc/httpd/conf.d 把 welcom.conf 刪掉或是把裡面的內容MARK起來
這時候你就可以在 /var/www/html 放入你想要的網頁
但是這時 你用browser 開啟你的網頁時 會發現 這個錯誤 403 You don't have permission to access on this server.
這時候 你就要去 /var/www/html 把你的網頁的權限 改成 755 指令如下
#chmod 755 filename


~~~~這樣就OK摟 !!

留言

這個網誌中的熱門文章

angular 如何Http 如何設定 CORS (Cross-Origin Resource Sharing)

Google Map 單車路徑計算坡度和角度小工具

Google URL Shortener API 快速教學