localhost icon indicating copy to clipboard operation
localhost copied to clipboard

Serving JS and CSS files from /_localhost/php folder

Open nick-romano opened this issue 8 years ago • 2 comments

Hey there,

Is it possible to configure the server to also serve javascript and css files in addition to the .php files.

Thanks, Nick

nick-romano avatar Apr 25 '17 19:04 nick-romano

Hi Nick,

I'm assuming you found this repository from following the tutorial here? https://lukearmstrong.github.io/2016/12/setup-apache-mysql-php-homebrew-macos-sierra/

The setup should serve any files from the DocumentRoot defined in the VirtualHost(s), so it should be working with JS and CSS files.

Thanks, Luke

lukearmstrong avatar Apr 26 '17 08:04 lukearmstrong

Hey Luke,

Yeah, for whatever reason, it is only willing to serve .php files from the virtual host folder. For other files I get a 403 forbidden error.

I've used chmod commands to set them to the same permissions as the .php files. Any idea what could be wrong?

nick-romano avatar Apr 26 '17 13:04 nick-romano