跳转到主要内容
你行网

Main navigation

  • 首页
  • 文章
  • 教程
  • 视频
  • 下载
  • 社区
  • 网站导航
User account menu
  • 登录

面包屑

  1. 首页

ubuntu 开启url 重写模块

由 hrs, 23 十月, 2019

打开终端,进入 /etc/apache2/ ,编辑apache2.conf 文件,将 AllowOverride None 改为AllowOverride All 保存后重启apache2就可以了。

hrs@hrs-desktop:~$ cd /etc/apache2/
hrs@hrs-desktop:/etc/apache2$ 

再打开编辑apache2.conf 文件

hrs@hrs-desktop:/etc/apache2$ sudo vim apache2.conf 

将 AllowOverride None 改为AllowOverride All

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

然后 保存就可以 了

:wq

 

标签

  • apache
  • 登录或注册以发表评论

评论

相关文章

如何优化1GB RAM VPS的Apache,PHP和MySQL性能
centos7 httpd 运行不稳定出现重启现象
Apache 使用 mod_rewrite 将 HTTP 重定向到 HTTPS
在Apache服务器上安装SSL证书
Apache2 Ubuntu默认页面

文章标签

CSS
Excel
ubuntu
php
vim
五笔
Linux
HTML
command
drupal 7
composer
centos
Mysql
drupal 8
模块(module)
drush
VPN
JavaSrcipt
apache
drupal 9
英语
Drupal
SEO
nerdtree
network
果树种植
surround
drupal10
主题(theme)
phpmyadmin
ssh
权限
yum
二进制
声音
ssl
selinux
HTML5
用户
password
Dreamweaver
flameshot
颜色
翻译
uploadprogress
DDEV
视图(views)
firewalld
gzip
快捷键
kernel
xdebug
错误
ckeditor
mbstring
C语言
源地址
简介
电脑基础
certbot
php扩展
git
apt
压缩解压
表单
httpd
电子秤
邮件验证
breadcrumb
AI
WireGuard
superfish
diff
重定向
网站备份
tagclouds
摄影
docker
java
adsense
drupal9
csharp
短信验证
simple_adsense
电脑技巧
算法
RSS
youtube
版本号
JavaScript
badblocks
端口
cookie
VUE
网站运营
计算机基础
form
gimp
mod_expires 模块
zip
nginx
http验证
重定向,301
netstat
curl
input
赚钱
dns
RFID
标签优化
drupal11
maven
ip
drupal 11
npm
哈希值
字段
更多
RSS源
本站由阿里云强力驱动,幸运券优惠链接
Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号