apache 配置虚拟主机 url重写功能
来源:互联网 发布:中西伯利亚高原知乎 编辑:程序博客网 时间:2024/06/05 17:35
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName yourhost.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/rgrass/public
<Directory />
AllowOverride All
Options Indexes FollowSymLinks MultiViews
allow from all
Order allow,deny
</Directory>
<Directory /var/www/rgrass/public >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName yourhost.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/rgrass/public
<Directory />
AllowOverride All
Options Indexes FollowSymLinks MultiViews
allow from all
Order allow,deny
</Directory>
<Directory /var/www/rgrass/public >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
0 2
- apache 配置虚拟主机 url重写功能
- Apache中设置虚拟主机的URL重写功能
- Apache中设置虚拟主机的URL重写功能
- Apache中设置虚拟主机的URL重写功能
- apache配置URL重写
- Apache配置之url重写
- apache url路由配置重写
- Apache VirtualHost 虚拟主机 ProxyPass 反向代理 RewriteEngine url 重写
- apache的博客roller的url重写功能,以及apache的二级域名配置
- url重写 apache+tomcat window2k 开发配置
- url重写 apache+tomcat window2k 开发配置
- apache配置mod_rewrite url重写相关
- apache url rewrite实现url重写配置详解
- apache如何实现伪静态(URL重写)功能?
- wdcp对default站点开启apache url重写功能
- 关于Apache mod_rewrite的中文配置、使用和语法介绍(实现URL重写和防盗链功能)
- 关于Apache mod_rewrite的中文配置、使用和语法介绍(实现URL重写和防盗链功能)
- 关于Apache mod_rewrite的中文配置、使用和语法介绍(实现URL重写和防盗链功能
- echarts配置更改图形大小标识等等
- oracle having用法
- 1004-Hive的加载数据到hdfs和mysql上案例介绍
- win2008+IIS7.5+VS2013+4.5netframework,HTTP 错误 404.0 - Not Found 错误代码 0x80070002 解决办法
- 1005-Hive的QL语法
- apache 配置虚拟主机 url重写功能
- 基于HTML模板和JSON数据的JavaScript交互
- 1006-Hive的自定义UDF函数
- Java字符串
- servlet实现用户登录
- Android UI常用实例 如何实现欢迎界面(Splash Screen)
- 数据库编程
- oracle group by ,having ,order by
- java实现图片验证码