nginx prevent file download

Hi,

I am running drupal 7.59 hosted on nginx webserver and i have set the below location block in nginx.conf configuration file to prevent a file to download.  When i hit http://example.com/web.config on the browser, the web.config file gets downloaded. It is not working.

location ~* \.(config)$ {

    deny all;

}

I will appreciate if somebody can pitch in for help. Thanks in Advance.

Best Regards,

Kaushal

Convert date as plain text to date format

Hello again,
I was able to add days to my date field using computed field and php code. Thanks to the help of wombatbuddy.
Now here is another problem:
1) The date in my computed field is in plain text format.
2) In views, using views conditonal, I want to compare my computed field (plain text date format) to current date (NOW). To be specific, in views condition - when date is less than NOW - then the output is OVERDUE.

Help needed in improving internationalization and in setting some features on a new theme

Thanks to all who have offered their help, the project has aleay been realized!

--------

I'm responsible for a small Drupal 7 site, for a non-profit psychology group that organizes continuous education activities. The site's main feature is the use of Ubercart for the registration of participants to these activities, and is mainly in French, partly internationalized to English.

mixed contents problem

Hello all, 

I bought a "website security deluxe" from godaddy. This has SSL and stuff. 

I'm having problems after that. When I press SAVE button to create a content, the interface does not refresh. So it looks like the content was not created. I think this is related to "mixed content" stuff. Here is an example of the mixed content error which I'm getting. Basically, I was trying to add a forum content, but it was not successful due to the blocked http request.  

Can't create new content type (http error 500)

Drupal core: 7.59

When I try to create a new content type or edit certain existing ones, I get a white page in Firefox and an HTTP error 500 in Google Chrome.

I tried using the module Token Tweaks.

I set the depth limit for the token tree to "2".

This allowed me to create content types again, but after a few mins, my entire site crashed. I had to restore it from a backup.

I tried this a few times and confirmed that Token Tweaks fixes the initial issue, but always crashes my site (forcing me to restore it from a backup).

Multiple levels of access permissions for a single view?

I have a view on my site that is visible to all signed in users. I'd like to add some notes to this view, e.g. in a footer, but I'd like for only a specific subset of users to be able to see them. Is this possible?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x