当前位置:网站首页>The problem that only the home page can be accessed under openSUSE Apache laravel
The problem that only the home page can be accessed under openSUSE Apache laravel
2022-06-25 03:47:00 【Diving rice awn】
First make sure you have your own configuration file :
AllowOverride All ( instead of None)
And then because of opensuse The built-in apache2 It's optimized , It is different from the official website , We cannot modify httpd.confg, And the document also indicates that this document should not be modified .
During a visit to opensuse It was found that 2 Bar command :a2enmod a2enflag, For the time being a2enflag,a2enmod It means adding modules .
then a2enmod The modules that can be added are /usr/lib64/ Under the path
ls apache*
All displayed mod* Are all addable modules .
a2enmod -l
To show what we have in effect mod, And then if not rewrite Add if necessary rewrite modular :
a2enmod rewrite
restart apache2 service :
systemctl restart apache2
Then check the... Under the project directory public/.htaccess Is it empty , If it is empty, add :
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
# Options +FollowSymLinks -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{
HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{
HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{
REQUEST_FILENAME} !-d
RewriteCond %{
REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{
REQUEST_FILENAME} !-d
RewriteCond %{
REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
The above can be accessed .
a2enmod -q
Prompt that the module can be queried , But the author tried it and it seems that he can't , So I went to the corresponding directory to find the module .
边栏推荐
- zabbix的安装避坑指南
- 马斯克被诉传销索赔2580亿美元,台积电公布2nm制程,中科院发现月壤中含有羟基形式的水,今日更多大新闻在此...
- Google founder brin's second marriage broke up: it was revealed that he had filed for divorce from his Chinese wife in January, and his current fortune is $631.4 billion
- How to raise key issues in the big talk club?
- Randla net: efficient semantic segmentation of large scale point clouds
- Is it safe to open a stock account on Huatai Securities?
- PHP uses getid3 to obtain the duration of MP3, MP4, WAV and other media files
- How to choose a securities company when opening an account with a compass? Which is safer
- How to play well in the PMP Exam?
- Demonstration of combination of dream CAD cloud map and GIS
猜你喜欢

DevEco Studio 3.0编辑器配置技巧篇

The era of copilot free is over! The official version is 67 yuan / month, and the student party and the defenders of popular open source projects can prostitute for nothing

騰訊開源項目「應龍」成Apache頂級項目:前身長期服務微信支付,能hold住百萬億級數據流處理...

MySql安裝教程

Sun Wu plays Warcraft? There is a picture and a truth

马斯克被诉传销索赔2580亿美元,台积电公布2nm制程,中科院发现月壤中含有羟基形式的水,今日更多大新闻在此...

EasyNVR使用Onvif探测设备失败,显示“无数据”是什么原因?

Collaboration + Security + storage, cloud box helps Shenzhen edetai restructure its data center

x86 CPU,危!最新漏洞引发热议,黑客可远程窃取密钥,英特尔“全部处理器”受影响...

Musk was sued for $258billion in MLM claims. TSMC announced the 2nm process. The Chinese Academy of Sciences found that the lunar soil contained water in the form of hydroxyl. Today, more big news is
随机推荐
亚马逊在中国的另一面
ASP. Net conference room booking applet source code booking applet source code
跨境电商新手如何防止店铺关联?用什么工具好?
Is it safe to open an account with flush securities?
Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award
The more AI evolves, the more it resembles the human brain! Meta found the "prefrontal cortex" of the machine. AI scholars and neuroscientists were surprised
Google founder brin's second marriage broke up: it was revealed that he had filed for divorce from his Chinese wife in January, and his current fortune is $631.4 billion
Musk was sued for $258billion in MLM claims. TSMC announced the 2nm process. The Chinese Academy of Sciences found that the lunar soil contained water in the form of hydroxyl. Today, more big news is
SkyWalking 实现跨线程 Trace 传递
Background page production 01 production of IVX low code sign in system
发布功能完成02《ivx低代码签到系统制作》
The sign in function completes 03 "IVX low code sign in system production"
Amazon's other side in China
We media do not know how to realize it? Sharing of 7 major realization methods
Introduction to database system
x86 CPU,危!最新漏洞引发热议,黑客可远程窃取密钥,英特尔“全部处理器”受影响...
Perfect shuffle problem
Rebeco:使用机器学习预测股票崩盘风险
TC object structure and abbreviation
[proteus simulation] Arduino uno+ nixie tube display 4X4 keyboard matrix keys