Can't see any posts
tyeeman opened this issue · comments
I've spent 2 hours playing with apache trying to allow cms.js have access to folders, which I believe is the problem but all I get is this -
Any tips? I have the following enabled in the Apache config file -
<VirtualHost *:80>
DocumentRoot "G:/laragonServerPortable/www/cmsjs/"
ServerName cmsjs.test
ServerAlias *.cmsjs.test
<Directory "G:/laragonServerPortable/www/cmsjs/">
AllowOverride All
Require all granted
Options Indexes
</Directory>
</VirtualHost>
Update - just uploaded to my personal web space and it works. Has this got something to do with browsers not allowing local file access no matter what?
I don't think this is related to local file access issues. Looks like it's pulling in the correct amount of files so it's definitely recognizing those files in the directory or else the page would probably be blank. If you click on the link does it redirect to another page? Any console errors?
Hey @tyeeman what does your directory index page look like? For example with Node Ecstatic server it looks like this:
@tyeeman can you send over some details about your setup so we can try and recreate the issue?
- Browser (and version)
- OS
- Web server (and version)
Hi Chris, like I said on my webspace I can see it's working just fine, but not on my localhost. I have two localhost apps (Laragon and Caddyserver, latest versions) and laragon shows like above and I just tried Caddyserver and it shows totally blank windows except for the title which shows fine. I'm on windows7, firefox 59.0.2.
@tyeeman CMS.js hasn't been tested on Caddyserver to my knowledge but seems like to it should work on Laragon (looks like it's using Apache). Do you happen to know which version of Apache that Laragon is running?
If you don't mind switching web servers for localhost, you can use Node Ecstatic by installing http-server for Node.js.
- Install Node.js and NPM (if you haven't already) - follow this link to install on Windows
- From your command prompt run
npm install -g http-server
- Go to your directory in which you have your CMS.js project - i.e.
cd Projects/cms-js-project/
- Then run
http-server
in your command prompt
@tyeeman let me know if you are still having issues. Closing this for now since it seems to be related to an unsupported web server.