【问题标题】:Cannot access Symfony Framework from Remote Machine无法从远程机器访问 Symfony 框架
【发布时间】:2010-09-16 02:58:17
【问题描述】:

我刚刚在我的笔记本电脑上安装了 Symfony 框架(运行 Ubuntu 10.04),但我希望能够从 Windows 机器上开发它。

这是我的网站 apache 配置文件:

# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080

# This is the configuration for your project
Listen 8080

<VirtualHost 127.0.0.1:8080>
  DocumentRoot "/var/www/graffiti/web"
  DirectoryIndex index.php
  <Directory "/var/www/graffiti/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf /var/www/graffiti/lib/vendor/symfony/data/web/sf
  <Directory "/var/www/graffiti/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

当我访问 localhost:8080 时,我会看到“Symfony Project Created”页面。

在我的桌面上,当我访问本地 IP 192.168.1.103:8080 时出现 404 错误。

如果我启用另一个站点,我可以从我的桌面访问就好了。我不知道我需要更改什么以允许远程访问 symfony。

【问题讨论】:

    标签: ubuntu symfony1 apache2


    【解决方案1】:

    想通了。

    我必须替换所有实例

    127.0.0.1:8080
    

    与;

    *:8080
    

    现在它可以工作了。

    【讨论】:

      猜你喜欢
      • 2015-02-04
      • 2019-06-11
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-18
      • 1970-01-01
      相关资源
      最近更新 更多