About LNMP thinkphp Unable to find a designated static page (for answer) (urgent)

Source: Internet
Author: User
About Lnmp Thinkphp can't find the designated static page (for answer) (urgent)
I lnmp a small thinkphp frame corresponding to the little site, very strange, after the environment is configured (the default module is index in the configuration file, the default method is index), I enter the URL localhost:10007/index.php/member /login, normally should show login.html, but the page is displayed index.html, but the style is not correct, after viewing the source code found that the style path is this,/index.php/index.php/member/index/tpl/ Css/style.css, then I changed the configuration in config.php as follows:

' Default_module ' = ' Member ',//set Default controller name
' Default_action ' = ' login ',//Set default method name

Again no matter what the URL input will always stay in the login.html corresponding page, but the style is not correct, the production of the original code found that the style path is this,/index.php/index.php/index/index/tpl/css/ Passport.min.css

In short, as if my ' default_module ' and ' default_action ' configuration items are configured, the URL will display the HTML file corresponding to the default modules and methods in the configuration file, regardless of the input.

And, should not be the framework of the problem, I new down a new version of the thinkphp, also not, this time even index.html page is not shown
I feel like my place is not configured, but I can't find!!!

The main directory structure is this:

App
Index
Conf
config.php
Common
Lang
Runtime
Lib
Action
IndexAction.class.php
MemberAction.class.php
Tpl
Default
Index
Index.html
Member
Login.html
Js
Css
Images
thinkphp (thinkphp frame)
index.php


index.php content is as follows
 
  
Header ("Content-type:text/html;charset=utf-8");

Define the thinkphp frame path (relative to the portal file)
Define (' Think_path ', './thinkphp ');

Define the project name and path
Define (' App_name ', ' MyApp ');
Define (' App_path ', './index ');
Define (' Back_url ', './index.php ');


Require (Think_path. " /thinkphp.php ");

Instantiate an instance of a Web site application
App::run ();

?>


config.php page
 Return Array (
' Config item ' = ' config value '
' Default_module ' = ' Index ',//set Default controller name
' Default_action ' = ' index ',//Set default method name
' App_debug ' =>true,//Open debug mode
' Tmpl_l_delim ' = ' {',//template engine normal tag start tag
' Tmpl_r_delim ' + '} ',//template engine plain tag end tag
' Url_model ' = 0,
' Db_name ' = ' Route ',
' Db_prefix ' = ' p_ ',
' Tmpl_engine_type ' = ' Smarty ',
' Token_on ' =>false,
' Token_name ' = ' __hash__ ',
' Token_type ' = ' md5 ',
' Db_fieldtype_check ' =>false,
' Tmpl_engine_config ' =>array (
' Caching ' =>false,
' Template_dir ' =>tmpl_path,
' Compile_dir ' =>cache_path,
' Cache_dir ' =>temp_path,
' Left_delimiter ' = ' {',
' Right_delimiter ' = '}} '
),
' Tmpl_action_error ' = tmpl_path. ' default/public/error.html ',//default error jump corresponding template file
' Tmpl_action_success ' and Tmpl_path ' default/public/success.html ',
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.