记录分享

TP5项目部署Nginx发生404

tp5项目在Apache中运行一切正常,但部署在nginx环境中,页面打不开提示404报错。

解决方案:

宝塔网站 -> 设置 -> 配置文件

# nginx tp项目404
location / {
index index.html index.htm index.php;
#autoindex on;

if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}

搞定!

9条评论

  • AlexisLah

    See the difference.
    Another success aphorism comes from Chris Grosser.
    Examples of Aphorism in Politics
    This aphorism is short and sweet, but it teaches us a valuable truth.
    Other Common Examples of Aphorisms
    This quote came from Wales, first appearing in an 1866 publication.
    Then use it as a guideline to stay focused on your general theme.
    Now here’s the big question.
    Take this proverb, for example.
    Examples of Aphorisms for Success
    There is no try.
    Washington’s message was that it’s wiser to be upfront and deal with the consequences.
    Oftentimes, it makes sense to delegate tasks.
    ’Ah, all things come to those who wait,’
    Their direct, witty approach is what makes these self-evident truths powerful.
    The term aphorism originates from late Latin aphorismus and Greek aphorismos.

  • AblissaTerse

    Check it out.
    Life is too short to surround yourself with toxic people.
    The complete quote was, A Jack of all trades and master of none, but oftentimes better than a master of one.
    Not good.
    Build a storyline around that saying.
    But one key difference is that for a phrase to be truly aphoristic, it needs to be a short statement.
    20 Aphorism Examples
    This famous motto highlights the truism that life is full of ups and downs.
    Another example comes from Spider-Man, where Uncle Ben turns to Peter Parker and says, With great power comes great responsibility.
    Honesty is the best policy.
    Other Common Examples of Aphorisms
    The original saying was, Eat an apple on going to bed, and you’ll keep the doctor from earning his bread.
    There must be a method to your madness.
    They’re in social media captions all over the web.
    Early to bed and early to rise makes a man healthy, wealthy, and wise.
    You get up and keep trying.

  • AblissaTerse

    The idea is simple.
    This aphorism is short and sweet, but it teaches us a valuable truth.
    He once stated, If you want a thing done well, do it yourself.
    Not so much.
    You’re prepared to use these handy little sayings to make your prose more relatable.
    Don’t judge a book by its cover.
    Do you believe that a penny saved is a penny earned.
    So what do you do.
    It’s one of the most recognized aphoristic statements today.
    Aphorism Examples in Everyday Speech
    Finally, Actions speak louder than words is another classic example.
    But these days.
    From there, you can build your story around it.
    Today, I’ll define aphorism and show you how these handy little sayings make your writing more memorable.
    Early to bed and early to rise makes a man healthy, wealthy, and wise.
    The original dictum said, A penny spar’d is twice got, but it’s adapted over the years for modern English.

Leave a Reply

邮箱地址不会被公开。