php 路径别名设置

<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server‘s namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
#ScriptAlias /cgi-bin/ "C:/greenProgram/php/Apache/cgi-bin/"

#Alias /o2o/assets "S:\works\o2o\o2o-assets"
#<Directory "S:\works\o2o\o2o-assets">
#AllowOverride AuthConfig
#Order allow,deny
#Allow from all
#</Directory>

Alias /o2o/assets "S:\works\o2o\o2o-assets"
<Directory "S:\works\o2o\o2o-assets">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

</IfModule>

时间: 2024-07-29 23:05:22

php 路径别名设置的相关文章

FileZilla Server下通过别名设置虚拟目录

说明:FileZilla Server 的虚拟目录设置与其它 FTP 服务器软件有所不同.在 FileZilla Server 中设置虚拟目录,必须采用 FTP 根目录 + 虚拟目录名的形式来进行.比如你 FileZilla Server 的根目录(即 Home 目录)为 E:\ftp,现在你要将 D:\media 加入虚拟目录,则需要在 D:\media 单击右键,选择 alias(别名),设置 alias 为 E:\ftp\media.其中 media 为虚拟目录名,可以与实际的目录名不同.

Linux centos 主机名颜色设置 和 别名设置

今天写点简单有趣的.至于为什么把主机名颜色设置 和 别名设置放在一起写,是因为他们的设置都是在一个文件里..bashrc..bashrc放在cd /root 这个目录下! 这个文件主要保存个人的一些个性化设置,如命令别名.路径等. 1.Linux主机名颜色设置,centos系统 如下图效果: 其实很简单的哦! 执行命令:vim .bashrc 在文件最下面添加这一行就OK 了! export PS1="\[\033]2;\H:\u \w\007\033[32;1m\]\[email protec

vue项目中的路径别名

每次写引入组件的路径,如果路径嵌套比较深,那么会比较麻烦,我们可以在webpack.base.conf.js,中设置路径的别名,默认webpack设置src的别名为@ 建议配置src下一级目录的别名,这样可以减少重复书写也会比较美观, 这样在引入components中的文件就可以这样写了: 代替 在项目运行中修改,路径别名配置需要重启项目,执行 cnpm install --save

AMH4.2 Ftp账号路径修改设置

AMH4.2的ftp控制有点不尽如人意,每个ftp账号只能对应一个站点:如果按照面板所提供的权限,有多少个站就得设置多少个ftp账号,这一操作就会非常麻烦,造成效率低下:不过AMH5.0已经能够通过面板设置一个ftp账号对应多个站点了,但是要收费的个人版五块钱一个月: 通过SSH命令也是能够让amh4.2设置的ftp管理全部站点的: 首先附上我的命令操作日志吧,看得懂的人一目了然 [[email protected] ~]# amh ftp add =======================

alias别名设置

语法:#  alias name='command line' 参数:-p:    打印出现有的别名(唯一的参数)若不加任何参数,则列出目前所有的别名设置 用法:# alias cp='cp -i'这样就可以用cp来代替cp -i,而且cp -i这条命令依旧有效 重新设置别名:alias重置的方法与第一次设置的时候一样# alias cp='cp -i' 删除别名:格式:unalias name #  unalias cp

所选驱动器不再有效,继续安装之前,请先检查安装路径的设置

用VS2010打开VS2008写的VB.NET程序,但打不开:后来一想,我VB.NET都没有安装:于是来将VB.NET,但添加VB.NET,点击"更新"后弹出错误"所选驱动器不再有效,继续安装之前,请先检查安装路径的设置",如图: 网上的解释说是安装了VS2010 SP1的原因,卸载SP1后,再安装VB.NET就没有问题了.

Cookie中图片的浏览记录与cookie读取servle时路径的设置(文字描述)

public class ShowServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } public void doPost(HttpServletRequest request, HttpServletR

IP别名设置记录

IP别名设置: 首先我的电脑的eth0的IP已经配置过了:192.168.22.134  netmask 255.255.255.0 然后我还想为eth0这个网卡多配置几个IP地址,方法如下: ifconfig eth0:0 192.168.22.231 netmask 255.255.255.0 up 这样就为这个网卡又配置了一个IP:192.168.22.231. 其中eth0:xx是新的别名,可以用ifconfig再次查看,可以看到. 而eth0:xx中,eth0:是固定的,因为这是给et

alias永久性别名设置

alias别名设置分为临时和永久,这里仅介绍永久别名设置. 第一步:vim /etc/profile /etc/profile是常用的配置文件,记住即可. 第二步:进入文件添加如下内容 alias vi='vim'    别名的设置 第三步:生效 source /etc/profile 第四步:查看    tail /etc/profile   (tail默认情况下显示后十行,如果感觉行数比较多,可以使用如下命令tail -2 /etc/profile) 注意: 特殊情况,比如 cp  rm