View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18383 | Bug reports | Other | public | 2022-09-28 20:01 | 2023-06-20 17:49 |
| Reporter | DenisChenu | Assigned To | DenisChenu | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.28.x | ||||
| Summary | 18383: Manual for nginx didn't work with /sid | ||||
| Description | We have instruction for nginx : How can I remove index.php from the URL path to get a shorter URL It's OK with admin, preview question etc … but not for survey only ( /1234) | ||||
| Steps To Reproduce | Steps to reproduceSetup a nginx, Expected resultSee the survey Actual result404 error about route | ||||
| Tags | No tags attached. | ||||
| Attached Files | CHttpException.html (2,862 bytes)
CHttpException
Impossible de résoudre la requête « /158192 ».
/data/webdev/3LTS/framework/web/CWebApplication.php(286)
274 public function runController($route)
275 {
276 if(($ca=$this->createController($route))!==null)
277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
287 array('{route}'=>$route===''?$this->defaultController:$route)));
288 }
289
290 /**
291 * Creates a controller instance based on a route.
292 * The route should contain the controller ID and the action ID.
293 * It may also contain additional GET variables. All these must be concatenated together with slashes.
294 *
295 * This method will attempt to create a controller in the following order:
296 * <ol>
297 * <li>If the first segment is found in {@link controllerMap}, the corresponding
298 * controller configuration will be used to create the controller;</li>
Stack Trace
#0
+
–
/data/webdev/3LTS/framework/web/CWebApplication.php(141):
*CWebApplication*->*runController*()
136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /**
145 * Registers the core application components.
146 * This method overrides the parent implementation by registering additional core components.
#1
+
–
/data/webdev/3LTS/framework/base/CApplication.php(185):
*CWebApplication*->*processRequest*()
180 public function run()
181 {
182 if($this->hasEventHandler('onBeginRequest'))
183 $this->onBeginRequest(new CEvent($this));
184 register_shutdown_function(array($this,'end'),0,false);
185 $this->processRequest();
186 if($this->hasEventHandler('onEndRequest'))
187 $this->onEndRequest(new CEvent($this));
188 }
189
190 /**
#2
+
–
/data/webdev/3LTS/index.php(194): *CApplication*->*run*()
189 require_once APPPATH . 'core/LSYii_Application' . EXT;
190
191 $config = require_once(APPPATH . 'config/internal' . EXT);
192
193 Yii::$enableIncludePath = false;
194 Yii::createApplication('LSYii_Application', $config)->run();
195
196 /* End of file index.php */
197 /* Location: ./index.php */
2022-09-28 19:58:14 nginx/1.18.0 Yii Framework
<http://www.yiiframework.com/>/1.1.24-dev
| ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 3.28.29 and 5.4.0 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | mariadb | ||||
| Server OS (if known) | debian | ||||
| Webserver software & version (if known) | nginx | ||||
| PHP Version | php7.4 | ||||
|
Same with 'showScriptName' => true, : index.php/1234 thrown a 404 |
|
|
Updated : try_files $uri /index.php?$uri&$args; Seems to fix the issue. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-09-28 20:01 | DenisChenu | New Issue | |
| 2022-09-28 20:01 | DenisChenu | File Added: CHttpException.html | |
| 2022-09-28 20:02 | DenisChenu | Note Added: 72009 | |
| 2022-09-28 20:02 | DenisChenu | Bug heat | 0 => 2 |
| 2022-09-29 11:48 | DenisChenu | Assigned To | => DenisChenu |
| 2022-09-29 11:48 | DenisChenu | Status | new => resolved |
| 2022-09-29 11:48 | DenisChenu | Resolution | open => fixed |
| 2022-09-29 11:48 | DenisChenu | Note Added: 72013 | |
| 2023-06-20 17:49 | c_schmitz | Status | resolved => closed |