Answers.Body: <p>You have an error with the configuration of your nginx that doesn't properly redirect to drupal /civicrm/a/ but does it for /civicrm/a.</p>
  
  <p>What configuration did you choose for your drupal/nginx? 
  I started with that one and whitelisted a few more urls (in extern/ folder)
  <a href="https://github.com/perusio/drupal-with-nginx" rel="nofollow">https://github.com/perusio/drupal-with-nginx</a> and it works fine</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-24T12:04:20.453Z
Answers.Text: Ahh, almost forgot about it; thanks to someone who has brought it at the top of the queue here. Will have a look at perusio's config; may I ask how has you whitelisted these URLs (always have a problem selecting from various variations of nginx configs created by perusio..)
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-23T08:12:00.953Z
Answers.LastActivityDate: 2016-03-24T18:45:22.590Z
Answers.LastEditDate: 2016-03-24T18:45:22.590Z
Answers.UserDisplayName: Xavier
Body: <p>We've nginx installed as a proxy.  While attempting to start New Mailing 
  <code>civicrm/mailing/send?reset=1</code> browser tries to reach <code>civicrm/a/#/mailing/new</code> url, ending with <strong>404 Not Found</strong> nginx error. Nginx error log says <em>"httpdocs/civicrm/a/index.html" is not found</em></p>
  
  <p>It sounds pretty much the same as this question: <a href="https://civicrm.stackexchange.com/questions/2581/unknown-path-error-when-trying-to-access-new-mailing-with-version-4-6-2">&#39;Unknown path&#39; error when trying to access New Mailing with version 4.6.2</a> , and we've no any modules installed.</p>
  
  <p>However, solution mentioned in first comment  works for us. This is it:</p>
  
  <blockquote>
    <p>After changing line 56 in file civicrm/CRM/Mailing/Controller/Send.php like below, it now works.</p>
  </blockquote>
  
  <pre><code>- CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/a/', NULL, TRUE, '/mailing/new'));
  + CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/a', NULL, TRUE, '/mailing/new')); 
  </code></pre>
  
  <p>But the question still is: do we need to perform something at NGINX configuration ( since pure Apache setup doesn't have this issue ) or it's a bug in the core, which should be reported / fixed? </p>
  
  <p>Drupal 7.40 + Civicrm 4.6.9</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-22T10:21:59.593Z
Comments.Text: Unfortunately, solution proposed for  civicrm/CRM/Mailing/Controller/Send.php doesn't work, so would be nice to make it works somehow. Putting hash sign as a second argument of CRM_Utils_System::url doesn't seems to be a good idea
Comments.UserDisplayName: yurg
Tags: <civimail><drupal><nginx>
Title: Mailings -> New mailing gives 404 Not found (NGINX)
ThreadText: # Mailings -> New mailing gives 404 Not found (NGINX)
  
  (Asked by: username_0 on 2015-10-16)
  
  We've nginx installed as a proxy. While attempting to start New Mailing
  `civicrm/mailing/send?reset=1` browser tries to reach `civicrm/a/#/mailing/new` url, ending with **404 Not Found** nginx error. Nginx error log says *"httpdocs/civicrm/a/index.html" is not found*
  
  It sounds pretty much the same as this question: ['Unknown path' error when trying to access New Mailing with version 4.6.2](https://civicrm.stackexchange.com/questions/2581/unknown-path-error-when-trying-to-access-new-mailing-with-version-4-6-2) , and we've no any modules installed.
  
  However, solution mentioned in first comment works for us. This is it:
  
  > After changing line 56 in file civicrm/CRM/Mailing/Controller/Send.php like below, it now works.
  
  ```
  - CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/a/', NULL, TRUE, '/mailing/new'));
  + CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/a', NULL, TRUE, '/mailing/new')); 
  
  ```
  
  But the question still is: do we need to perform something at NGINX configuration ( since pure Apache setup doesn't have this issue ) or it's a bug in the core, which should be reported / fixed?
  
  Drupal 7.40 + Civicrm 4.6.9
  
  **Tags:** civimail, drupal, nginx
  
  > **Comments:**
  > **username_0**: Unfortunately, solution proposed for  civicrm/CRM/Mailing/Controller/Send.php doesn't work, so would be nice to make it works somehow. Putting hash sign as a second argument of CRM_Utils_System::url doesn't seems to be a good idea  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-23. Score: 1
  
  You have an error with the configuration of your nginx that doesn't properly redirect to drupal /civicrm/a/ but does it for /civicrm/a.
  
  What configuration did you choose for your drupal/nginx?
  I started with that one and whitelisted a few more urls (in extern/ folder)
  <https://github.com/perusio/drupal-with-nginx> and it works fine
  
  > **Comments:**
  > **username_0**: Ahh, almost forgot about it; thanks to someone who has brought it at the top of the queue here. Will have a look at perusio's config; may I ask how has you whitelisted these URLs (always have a problem selecting from various variations of nginx configs created by perusio..)  
  
  ---
  
  