Re: [SIFO] Re: static vs root

11 views
Skip to first unread message

Albert Lombarte

unread,
Feb 15, 2015, 5:00:38 PM2/15/15
to sif...@googlegroups.com
Hello Michael,

The application works with 2 different virtualhosts:

1) One for dynamic requests, with the index.php (sifoweb/public/root)
2) A second for static content (sifoweb/public/static)

The static hosts is not intended to be browsed, it should only load the content when the exact resource is requested. Example from the live version:

http://static.sifo.me/docs/mvc.png --> This URL will show the image
http://static.sifo.me/ --> This is a permission denied

This is the way it is supposed to work.

Notice that the host static.sifo.me is not the one serving the application. The index.php is loaded from the 1st virtualhost, listening under sifo.me

Hope this clarifies


2015-02-15 21:36 GMT+01:00 Michael Heath <m.he...@gmail.com>:
Nope, back to the Permissions problem...

On Sunday, February 15, 2015 at 5:26:44 PM UTC-3, Michael Heath wrote:
Hi, just trying to get the sifo-web app working on Windows and keep hitting one of two problems:

1 Apache error 'Cannot serve directory C:/dev/sifo-app/instances/sifoweb/public/static/: No matching DirectoryIndex (index.php,index.php3,index.html,index.htm) found, and server-generated directory index forbidden by Options directive'

2 So, if I add in Options +Indexes to give permissions to the directory I just get a listing of the resources (expected).

My question is if there is no index.html in the static directory, is the framework supposed to auto-direct it to the root directory where there is index.php?

--
You received this message because you are subscribed to the Google Groups "SIFO, PHP framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sifophp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Heath

unread,
Feb 20, 2015, 11:43:20 AM2/20/15
to sif...@googlegroups.com
Hi Albert,

Thanks for your reply. My problem was actually due to the fact that the WAMP server I am using is set by default to not allow virtual hosts. Once I figured that out everything went smoothly.

Soon I will have my new Macbook Pro and am looking forward to trying the Vagrant installation which I also tried on Windows with no success.

Nice framework BTW.
Reply all
Reply to author
Forward
0 new messages