我正在运行Mac Mavericks。MAMP端口配置
所以我在这里教程:http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2来实现通知服务器。
我正在尝试使用MAMP PRO来跟随教程。
我做了什么:
文件夹结构:/应用程序/ MAMP/htdocs中/ PushChatServer
编辑的etc/hosts文件,添加以下行:
127.0.0.1 pushchat.local
编辑我的HTTPS .conf文件添加以下内容:
Listen 44447
Uncommented the following NG线
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
编辑我的httpd-vhosts.conf文件中添加以下内容:
NameVirtualHost *:44447
<VirtualHost *:44447>
DocumentRoot "/Applications/MAMP/htdocs/PushChatServer/api"
ServerName 192.168.78.199:44447
#ServerName pushchat.local
ServerAlias pushchat.local
CustomLog "/Applications/MAMP/htdocs/PushChatServer/log/apache_access.log" combined
ErrorLog "/Applications/MAMP/htdocs/PushChatServer/log/apache_error.log"
SetEnv APPLICATION_ENV development
php_flag magic_quotes_gpc off
<Directory "/Applications/MAMP/htdocs/PushChatServer/api">
Options Indexes All
AllowOverride All
Order allow,deny
Allow from all
#Require all granted
</Directory>
</VirtualHost>
差不多,这是因为在本教程解释了一切。
我唯一的问题是,当我在safari中打开以下URL http://pushchat.local:44447时,它只是挂起并且不加载。
但是,如果我输入http://pushchat.local/PushChatServer/api/index.php,则会发生一线希望,然后按预期加载。
我只是不明白为什么第一个不起作用,因为它是在教程中解释。我尝试了很多东西,但似乎没有任何工作。
谢谢。