サーバー上の仮想ホストディレクティブ-.configファイルを変更する必要がありますか?


0

Mavericks ServerでOpenPhotoをセットアップしようとしています。

ローカルにホストされているサイトの手順は、仮想ホスト構成ファイルにディレクティブを追加することです。

そのファイル(0000_80_local_site.config)を編集することになっていますか?サーバーアプリによって書き込まれるので、編集するのが怖いです。

ディレクティブはどこに追加すればよいですか?

回答:


0

私もこの問題と戦っています。これを行うAppleの方法は、Webアプリとplistファイルを作成することです。ドキュメントは少ないですが、説明のためにターミナルで「man webapp.plist」と入力できます。また、「/ライブラリ/Server/Web/Config/apache2/webapps/com.example.mywebapp.plist」にサンプルアプリがあります。ところで、私はMavericksバージョンではなく「Mountain Lion Server」を見ています。それらが同じかどうかを確認してください。

編集して追加:http://webapps.itcs.umich.edu/cosign/index.php/Mountain_lion_server_installの例に従って、私のものを動作させることができました

サンプルアプリ:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"          "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>includeFiles</key>
<array>
             <string>/Library/Server/Web/Config/apache2/webapp_scripts/httpd_myinclude.conf</    string>
</array>
<key>launchKeys</key>
<array>
    <string>com.example.mywebapp</string>
</array>
<key>name</key>
<string>com.example.mywebapp</string>
<key>displayName</key>
<string>MyWebApp</string>
<key>proxies</key>
<dict>
    <key>/mywebapp</key>
    <dict>
        <key>keysAndValues</key>
        <string></string>
        <key>path</key>
        <string>/mywebapp</string>
        <key>urls</key>
        <array>
            <string>http://localhost:3000</string>
            <string>http://localhost:3001</string>
        </array>
    </dict>
</dict>
<key>requiredModuleNames</key>
<array>
    <string>mod_mystuff.so</string>
</array>
<key>requiredWebAppNames</key>
<array>
    <string>com.example.webapp.myotherwebapp</string>
</array>
<key>preflightCommand</key>
<string>/usr/local/bin/preflightmywebapp</string>
<key>startCommand</key>
<string>/usr/local/bin/startmywebapp</string>
<key>stopCommand</key>
<string>/usr/local/bin/stopmywebapp</string>
<key>installationIndicatorFilePath</key>
<string>/usr/local/bin/mywebapp</string>
<key>sslPolicy</key>
<integer>0</integer>

.confファイルを「/ライブラリ/Server/Web/Config/apache2/webapp_scripts/httpd_myinclude.conf」に配置するように見えます

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.