RedHat7.3 apache-2 ユーザーのページが見れない。
- RedHat7.3 apache-2ユーザーのページが表示されない現象について解決方法を教えてください。
- ブラウザを立ち上げてhttp://localhost/にアクセスすると、/usr/local/apache2/htdocs/index.htmlは表示されるが、ユーザーのページはForbiddenエラーが表示される。
- httpd.confファイル内のUserDir public_htmlの設定を確認し、ユーザーのホームディレクトリにpublic_htmlディレクトリを作成することで解決する。
- ベストアンサー
RedHat7.3 apache-2 ユーザーのページが見れない。
ブラウザを立ち上げて http://localhost/ ってやると/usr/local/apache2/htdocs/index.htmlが見えるのですが、 taroというユーザーを作ってホームディレクトリのしたに ~taro/public_html/index.html をつくってやると Forbidden You don't have permission to access /~taro on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.39 Server at localhost Port 80 といわれちゃいます。ちなみに.httpd.confの中の所では #UserDir public_html <IfModule mod_userdir.c> UserDir public_html </IfModule> となっています。 どうすれば見れるようになるのでしょうか?
- taropoo
- お礼率53% (212/400)
- その他(OS)
- 回答数2
- ありがとう数1
- みんなの回答 (2)
- 専門家の回答
質問者が選んだベストアンサー
それでは不適切です。 taro 701 public_html 701 index.html 604 に変更してください。 # index.html は644でもいいですが。
その他の回答 (1)
- marimo_cx
- ベストアンサー率25% (873/3452)
~taro/ のパーミッションは701や711など、適切なものになっていますか? public_html も、同じように。
補足
残念ながら;-) drwx------ 20 taro user 4096 7月 29 15:11 taro drwx------ 2 taro users 4096 7月 23 18:51 public_html -rw-r--r-- 1 taro users 75 7月 23 18:52 index.html です。
関連するQ&A
- ~user を表示できない
RedHat8.0+Apache2.43でウェブサーバーを立てたんですが、トップページは普通に表示できるのにユーザーのページが表示できません。/etc/httpd/conf/httpd.confでは <IfModule mod_userdir.c> # UserDir "disable" UserDir public_html </IfModule> としてあります。ユーザー(taro)のディレクトリのパーミッションは [root@aurora public_html]# pwd /home/taro/public_html [root@aurora public_html]# la 合計 16 drwxr-xr-x 2 taro users 4096 1月 31 16:36 . drwxr-xr-x 23 taro users 4096 5月 30 17:35 .. -rw-r--r-- 1 taro users 2936 1月 31 16:36 TokyoTime.class -rw-r--r-- 1 taro users 53 1月 31 16:36 index.html [root@aurora public_html]# です。 ユーザーのページを見れるようにするにはどうしたらいいでしょう?
- ベストアンサー
- その他(OS)
- 「Forbidden」が表示されWebページが見れない
あるページを開こうとすると 「Forbidden You don't have permission to access /***/ on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.」 (/***/は任意の名前) が表示され閲覧できません。相手側に問題があると思うのですが、このメッセージは何を意味するのでしょうか?
- ベストアンサー
- レンタルサーバ・ASP
- 一度見たホームページが見られない!どうして?
ホームページが見れなくなってしまいました。アクセスすると以下のように表示されます。 Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.29 Server at ns.lovebeatles.com Port 80 どうしてなのでしょう。 他のホームページは大丈夫なのですが。 誰か教えてください。
- 締切済み
- その他(インターネット・Webサービス)
- Apacheのユーザーディレクトリにアクセス不可
こんにちは。 ここ最近、学習のためにCentOSでWebサーバの構築を行っていたのですが、 どうにも自力では解決できない問題に直面しているため、皆様のお力をお借りできればと思います。。 【現象】 ApacheによるWEBサーバに「http://サーバIP/~ユーザ名/index.html」でアクセスしようとすると、 「403 Forbidden」エラーでアクセスできない。 【環境】 ・CentOS 6.4 64ビット (VirtualBox上のゲストOSとして稼働) ・Apache - 2.4.6 (/usr/local/apache/ 以下に存在) 【既に確認済みの事項】 ・以下のディレクトリのパーミッションは755に設定されている(711も確認済み) 「/home」 「/home/ユーザ名」 「/home/ユーザ名/public_html」 ・SELinuxはDisabled(Permissiveも確認済み) ・「# restorecon -R /home」コマンドは一応実行済み ・「public_html」以下にはパーミッション644の「index.html」が存在している ・「http://サーバIP/~間違ったユーザ名/」は403でなく404エラーになる ・「http://サーバIP/~ユーザ名/存在しないファイル名」は404でなく403エラーになる ・htdocs以下のファイルには「http://サーバIP/~」で正常にアクセスできる。 (htdocs以下のフォルダのパーミッションは755で、711だと403エラーになった。) 【設定ファイル】 /usr/local/apache/conf/httpd.conf は以下の通り記述されている。 ・モジュールロード部分 LoadModule userdir_module modules/mod_userdir.so ・設定部分 <IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # #UserDir disable # # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disable" line above, and uncomment # the following line instead: # UserDir public_html </IfModule> <Directory /home/*/public_html> AllowOverride All Options IncludesNoExec ExecCGI FollowSymLinks <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory> 同様の症状に困っている書き込み・記事等もたくさんあり、それらは確認しつくしたつもりですが、 全てパーミッション見直し・SELinuxの設定までで解決しているように見受けられます。 おそらく、自分では思いもつかない全く別の原因が存在するのではないかと思っており、 皆様のお力をお貸しいただければ幸いです。 なお、足りない情報等あればご指摘いただければと思います。 どうぞ余禄お願いいたします。
- ベストアンサー
- Linux系OS
- phpEditorのヘルプ機能
phpエディター使用中に関数等の説明がF1で出るとの事らしいのですが、 関数をドラッグし、F1を押すと以下がでるだけです。 どうしたら使えるようになるのでしょうか? Forbidden You don't have permission to access /php/man/lookup.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/2.0.52 (Red Hat) Server at fol.axisz.jp Port 80
- ベストアンサー
- PHP
- Apacheでのユーザーディレクトリ生成
現在fedora core4 -Apache- でサーバー構築を勉強中なのですが、どうしても解決できない問題が出ました。それはユーザーディレクトリを生成した後、そのディレクトリにアクセスできないという問題です。 ユーザー[testuser]を追加し、/home/testuser/public_htmlを作成後 /home/testuser/public_html/index.htmlを作成、 httpd.confの設定を <IfModule mod_userdir.c> #UserDir disable UserDir /home/*/public_html/ </IfModule> # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # #<Directory /home/*/public_html> # AllowOverride FileInfo AuthConfig Limit # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Directory /home/*/public_html> AllowOverride All Options IncludesNoExec ExecCGI FollowSymLinks <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory> とし、ttp://www.testsrv.net/~testuserにアクセスしたところ、 You don't have permission to access /~user1 on this server. アクセス権が無いとはじかれました。 この場合、アクセスできるようにするにはどのようにすれば良いのでしょうか?
- 締切済み
- ハードウェア・サーバー
- 昨日の夜は見れたのに、今日は「forbidden」…?
こんにちは。今日あるサイトに言ったら Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. というページが出ました。 「あなたはアクセスする承認・同意を得ていません」っていう訳だと思うんですけど、、これは管理者から僕だけを入れないようにされたのでしょうか? 回答お願いします。
- ベストアンサー
- ブログ
- 下記の文章を翻訳願います
You don't have permission to access /cgi-bin/deep/boutique/view.cgi on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
- ベストアンサー
- 英語
- apacheのユーザーディレクトリの設定
Fedora Core6のapacheのユーザーディレクトリの設定で悩んでいます。 設定ファイル(httpd.conf)には以下のように記述しています。 #UserDir disable UserDir public_html <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory> ユーザー登録をして/home/ユーザ名/にpublic_htmlフォルダを作成して、index.htmlページを作り、http://localhost/~ユーザー名/index.htmlにアクセスしましたが、「403 Forbidden」となってしまいます。 http://127.0.0.1/~ユーザー名/でアクセスしても「403 Forbidden」になります。 フォルダやファイルのパーミッションをいろいろと変えてみましたが表示されません。 こちらはLinux勉強中の初心者です。 よろしくお願いします。
- ベストアンサー
- Linux系OS
- apache で /cgi-bin/にアクセスできません。
Forbidden You don't have permission to access /cgi-bin/ on this server. Apache/1.3.19 Server at localhost Port 80 ブラウザで見ようとすると上のようなエラーが表示されます。 htdocs内の初期のテストのindex.htmlは参照できます。
- ベストアンサー
- その他(インターネット接続・通信)
お礼
おおーっ、見れました!! ありがとうございました。