Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

403 error when trying to login #107

Open
jimlongo56 opened this issue Nov 7, 2014 · 9 comments
Open

403 error when trying to login #107

jimlongo56 opened this issue Nov 7, 2014 · 9 comments

Comments

@jimlongo56
Copy link

Hi, I've installed Salty-Wordpress with VirtualBox on a Mac running 10.10.
When I try to access the url in my /etc/hosts file (or 192.168.50.10 directly) I get a 403 Forbidden error.

@joehoyle
Copy link
Member

joehoyle commented Nov 7, 2014

Hi @jimlongo56,

When you access Salty-WordPress it will look into the projects directory for a dir with the hostname. SO using the IP will give you a Forbidden error, but "wordpress-develop.dev` (providing you put that in your hosts file) should show you the WordPress development site.

@jimlongo56
Copy link
Author

Thanks Joe,

When I run vagrant up from Salty-WordPress it launches without any errors and automatically writes this line in /etc/hosts

192.168.50.10 salty-wordpress # VAGRANT: 10b5ed7fa3a1b157813c189a5b3284e1 (default) / 882ce291-e9c8-439e-beea-52117fb393fe

Then when I try to access http://salty-wordpress http://salty-wordpress/ I get the error

403 Forbidden

nginx/1.4.6 (Ubuntu)


Jim Longo | http://jimlongo.com/ | 416.939.9359

On Nov 7, 2014, at 4:30 PM, Joe Hoyle [email protected] wrote:

Hi @jimlongo56 https://github.com/jimlongo56,

When you access Salty-WordPress it will look into the projects directory for a dir with the hostname. SO using the IP will give you a Forbidden error, but "wordpress-develop.dev` (providing you put that in your hosts file) should show you the WordPress development site.


Reply to this email directly or view it on GitHub #107 (comment).

@joehoyle
Copy link
Member

joehoyle commented Nov 7, 2014

@jimlongo56 oh hmm, I don't know anything about that line being added to your hosts file, @danielbachhuber did you add that, or is this a default vagrant thing?

@jimlongo56 can you try adding 192.168.50.10 test.dev to you hosts file, then create projects/test.dev/index.php in your Salty-WordPress checkout to see if that works?

@danielbachhuber
Copy link
Contributor

Hm, doesn't do it for me.

@jimlongo56
Copy link
Author

Is it automatically added by the fact this is installed? vagrant plugin install vagrant-hostsupdate
I think it reads from the Vagrant file and writes to /etc/hosts when you run vagrant up.
It removes the entry when you halt vagrant.

Even if I add the line you asked for, the other one will also get added when I boot vagrant, so now there will be 2 lines with the same IP.


Jim Longo | http://jimlongo.com/ | 416.939.9359

On Nov 7, 2014, at 4:37 PM, Joe Hoyle [email protected] wrote:

@jimlongo56 https://github.com/jimlongo56 oh hmm, I don't know anything about that line being added to your hosts file, @danielbachhuber https://github.com/danielbachhuber did you add that, or is this a default vagrant thing?

@jimlongo56 https://github.com/jimlongo56 can you try adding 192.168.50.10 test.dev to you hosts file, then create projects/test.dev/index.php in your Salty-WordPress checkout to see if that works?


Reply to this email directly or view it on GitHub #107 (comment).

@joehoyle
Copy link
Member

joehoyle commented Nov 7, 2014

@jimlongo56 that's not an issue - you can have as many as you want with the same IP, for example, this is my hosts file:

@jimlongo56
Copy link
Author

That works, I can access http://test.dev/ http://test.dev/

On Nov 7, 2014, at 4:50 PM, Joe Hoyle [email protected] wrote:

@jimlongo56 https://github.com/jimlongo56 that's not an issue - you can have as many as you want with the same IP, for example, this is my hosts file:

https://camo.githubusercontent.com/aba79138e724c345f2f5c3ceeabce6af0a38acca/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6a6f65686f796c652d63617074757265642f526b79464d2e706e67

Reply to this email directly or view it on GitHub #107 (comment).

@joehoyle
Copy link
Member

joehoyle commented Nov 7, 2014

@jimlongo56 cool, so it seems to be working - so you basically just create whatever projects you want then add that domain to your hosts file. The hostupdater thing is a red herring, given that Salty WordPress doesn't know what domains you want to use it can't be added to the hostfile automatically unfortunately.

Is there anything else I can help with here?

@jimlongo56
Copy link
Author

Thanks for the help.

Works now except for the humanmade/humanmade username/password

On Nov 7, 2014, at 4:58 PM, Joe Hoyle [email protected] wrote:

@jimlongo56 https://github.com/jimlongo56 cool, so it seems to be working - so you basically just create whatever projects you want then add that domain to your hosts file. The hostupdater thing is a red herring, given that Salty WordPress doesn't know what domains you want to use it can't be added to the hostfile automatically unfortunately.

Is there anything else I can help with here?


Reply to this email directly or view it on GitHub #107 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants