Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML files not showing #247

Open
EdViva opened this issue May 5, 2016 · 3 comments
Open

XML files not showing #247

EdViva opened this issue May 5, 2016 · 3 comments

Comments

@EdViva
Copy link

EdViva commented May 5, 2016

I have a staging server and a production server one is using the D7 branch and one the master branch. I have created a views services output which normally creates an xml and json file. On the master branch this is no problem but on the D7 branch - which is my production server, the xml suffix results in a 404. The xml file is created as i can see it without the suffix but i cant import it as a feed as I think it doesnt like the omission of the xml suffix. The drupal installs are using the exact same code base. I am hesitant to switch to master on live. Any idea what might be different in the two branches to cause this issue? I have looked the changes on the github repo between branches but nothing is looking obvious to me. Thanks in advance.

@pust0ta
Copy link

pust0ta commented May 5, 2016

Try to change
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
to
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|otf|ttf|eot|woff|svg)$ {
on line 120 of apps/drupal/drupal.conf

@EdViva
Copy link
Author

EdViva commented May 6, 2016

Thanks for your response. I would think that would be the solution. I tried changing adding xml on the server that was working and I got a 404 and then added a json and browsed the json export and again correctly got a 404. However when I add json to the drupal.conf on the server where .xml files not showing, the json is still found, and removing the xml as you stated, doesnt make the .xml file found. So it seems that these server settings are being ignore or overridden. The vhost file is definitely pointing to drupal.conf.

@EdViva
Copy link
Author

EdViva commented May 6, 2016

Ok fixed now. Nginx not restarting for some reason.

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

No branches or pull requests

2 participants