これにバインドされているシステムlaunchd.plistを変更して、カスタムapacheインストールを起動することができます。
これを行うには、次を編集します。
/System/Library/LaunchDaemons/org.apache.httpd.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<true/>
<key>Label</key>
<string>org.apache.httpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/httpd</string>
<string>-D</string>
<string>FOREGROUND</string>
</array>
<key>OnDemand</key>
<false/>
<key>SHAuthorizationRight</key>
<string>system.preferences</string>
</dict>
</plist>
/ usr / sbin / httpd文字列を、カスタムApacheインストールへのパスに変更します。最初に、またはコマンドラインからWeb共有を無効にしてください。
launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
編集したら、[Web共有]ボタンをクリックするか、コマンドラインから次の手順を実行します。
launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
2番目の質問では、apache構成でリダイレクトを設定できます
/path/to/apache2/conf/httpd.conf
これがMAMPのどこにあるか正確にはわかりませんが、一般的な構文は次のとおりです。
Redirect / http://mydomain.com:591/FMI/IWP/
通常、これらを条件付きでラップすることをお勧めします
<IfModule alias_module>
Redirect / http://mydomain.com:591/FMI/IWP/
</IfModule>
そして、リクエストをプロキシパスする方がよりエレガントなソリューションになると思います
</IfModule>
<IfModule proxy_module>
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
<Location /filemaker/>
ProxyPass /filemaker/ http://www.google.com/
ProxyPassReverse /filemaker/ http://www.google.com/
ProxyPass /images http://www.google.com/images
ProxyPass /extern_js http://www.google.com/extern_js
ProxyPass /intl http://www.google.com/intl
ProxyPass /csi http://www.google.com/csi
</Location>
</IfModule>
この例では、http:// localhost / filemakerにアクセスするだけで、Googleページが表示されます。ProxyPassで渡すリソースは、FileMakerが必要とするものによって異なります。
ドメインを保持する必要がなく、すべてをプロキシしたい場合は、
</IfModule>
<IfModule proxy_module>
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
ProxyPass / http://www.google.com/
ProxyPassReverse / http://www.google.com/
</IfModule>