Ubuntu 无法从远程计算机访问Symfony Framework

Ubuntu 无法从远程计算机访问Symfony Framework,ubuntu,symfony1,apache2,Ubuntu,Symfony1,Apache2,我刚刚在我的笔记本电脑上安装了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

我刚刚在我的笔记本电脑上安装了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>
#请确保在您的配置中只有一次此行
NameVirtualHost 127.0.0.1:8080
#这是项目的配置
听8080
DocumentRoot“/var/www/graffiti/web”
DirectoryIndex.php
允许超越所有
通融
别名/sf/var/www/graffiti/lib/vendor/symfony/data/web/sf
允许超越所有
通融
当我访问localhost:8080时,我会看到“创建Symfony项目”页面

在我的桌面上,当我访问本地IP 192.168.1.103:8080时,我得到一个404错误

如果我启用另一个站点,我就可以从我的桌面正常访问。我被难住了,我需要改变什么来允许远程访问symfony。

解决了这个问题

我必须替换所有的实例

127.0.0.1:8080

现在它开始工作了。

找到了答案

我必须替换所有的实例

127.0.0.1:8080

现在它开始工作了