<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 别名目录</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E5%88%AB%E5%90%8D%E7%9B%AE%E5%BD%95/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nginx设置alias别名目录访问phpmyadmin</title>
		<link>https://www.osyunwei.com/archives/3818.html</link>
		<comments>https://www.osyunwei.com/archives/3818.html#comments</comments>
		<pubDate>Sat, 12 May 2012 05:13:23 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[LNMP]]></category>
		<category><![CDATA[Alias]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[别名目录]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=3818</guid>
		<description><![CDATA[引言：Nginx服务器通过设置alias别名可以使特定的目录（phpmyadmin目录）不出现在网站根目录下面， 即使网站根目录被攻破，也不会影响到phpmyadmin目录里面的文件。 说明： 站点：http://192.168.21.160/，如下图 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 站点根目录：/usr/local/nginx/html/ Nginx运行账户：www Nginx运行账户组：www phpmyadmin目录：/home/phpmyadmin MySQL用户名：root 密码：123456 实现目的：通过http://192.168.21.160/phpmyadmin访问这个地址，实现对MySQL数据库的管理 操作步骤 1、下载phpmyadmin  cd /home  wget http://ncu.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.5.1/phpMyAdmin-3.5.1-all-languages.tar.gz    #下载 tar xvfz  phpMyAdmin-3.5.1-all-languages.tar.gz       #解压 mv   phpMyAdmin-3.5.1-all-languages  phpmyadmin       #更改文件夹名字为phpmyadmin 未修改nginx配置文件之前，访问http://192.168.21.160/phpmyadmin如下图，提示404错误，找不到文件 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 2、修改nginx配置文件 cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.confbak  #备份配置文件 vi /usr/local/nginx/conf/nginx.conf  #修改配置文件，在 server {         listen       80;         server_name  localhost;         #charset koi8-r;         #access_log  logs/host.access.log  main; [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/3818.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/3818.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
