Apache

「Web共有」が見当たらない件

ちょっとしたPHPプログラムの動作確認するために、 「システム環境設定→共有→Web共有」 と辿ってApacheを起動しようとしたのだが、「Web共有」が見当たらなくなった。 ※OSをMavericksにしてからか…??仕方なく、コマンドラインからApacheを起動することにし…

Document Rootの変更

/etc/apache2/httpd.confを編集する $ sudo vim httpd.conf 以下の2箇所を任意のパスに変更する。 DocumentRoot "/Library/WebServer/Documents" <Directory "/Library/WebServer/Documents"> Apacheを再起動する $ sudo apachectl graceful</directory>

SSL接続ができない

# /etc/init.d/httpd graceful httpd not running, trying to start Apache/2.2.3 mod_ssl/2.2.3 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide the pass phrases.S…

mod_sslが有効にならない

Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration ⇒mod_sslが入ってないことが原因 mod_sslをインストール。 # yum install mod_ssl これでも同じエラーが出たので、 /etc/httpd/conf/htt…

バーチャルホストの設定

今更ですが。

Basic認証をかける

今更ですが。