启用rewrite模块
sudo a2enmod rewrite
在/etc/apache2目录下的mods-available(未启用模块),mods-enabled(已启用模块)。
单单上面那条命令还不足以完成使Apache接收请求进行重写机制。
还需要通过命令;
sudo vim /etc/apache2/sites-enabled/000-default
将
Al...
分类:
Web程序 时间:
2015-01-20 17:58:48
阅读次数:
143
创建配置文件/etc/apache2/sites-available# sudo nano mysite.conf #ServerName hello.djangoserver DocumentRoot /www2 #DirectoryIndex testMain.html O...
分类:
Web程序 时间:
2015-01-20 11:54:19
阅读次数:
294
网上搜索到的大部分地址都已经失效了最新的地址如下:http://repository.sonatype.org/content/sites/forge-sites/m2e/0.10.0/S/20100209-0800/另外具体安装方法可参照以下链接:http://www.tuicool.com/ar...
分类:
系统相关 时间:
2015-01-19 10:50:47
阅读次数:
140
def templates_context_process(request): from django.contrib.sites.models import Site from accounts.models import ContactUsInfo if Site.object...
分类:
其他好文 时间:
2015-01-18 15:33:01
阅读次数:
173
Ubuntu搭建https步骤:#apt-getinstallapache2#apt-getinstallssl-cert#apt-getinstallopenssl开启SSL模块#a2enmodssl#ln-s/etc/apache2/sites-available/default-ssl/etc/apache2/sites-enabled/#serviceapache2restart访问:https://localhost
分类:
Web程序 时间:
2015-01-17 23:39:53
阅读次数:
322
在最开始如果你使用的时eclipse,那么你需要去安装一下maven的插件
插件路径:http://m2eclipse.sonatype.org/sites/m2e
安装指南:http://blog.163.com/myrudy@126/blog/static/17185153620108284935318/
进入eclipse->window->preferences->搜索mav...
分类:
其他好文 时间:
2015-01-15 18:19:42
阅读次数:
198
1.在终端运行命令:$sudoapt-getinstallnginxubuntu安装Nginx之后的文件结构大致为:所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下启动程序文件在/usr/sbin/nginx日志放在了/var/log/nginx中,分别是access.log和error.log并已经..
分类:
系统相关 时间:
2015-01-13 20:02:07
阅读次数:
252
(1)首先查看*.conf 是否有读写权限,如果没有要将文件赋予读写权限,比如sudo chmod 777 localhost.conf(2)再查看/Users/username/Sites/localhost/文件夹是否有index.html文件,没有的话,创建一个,默认是打开index.html...
分类:
数据库 时间:
2015-01-13 00:04:46
阅读次数:
186
错误信息:You‘reusingtheDjango"sitesframework"withouthavingsettheSITE_IDsetting.CreateasiteinyourdatabaseandsettheSITE_IDsettingtofixthiserror.原因:settings.py里#Applicationdefinition中添加了‘django.contrib.sites‘模块后需要设置SITE_ID处理:在settings.py里..
分类:
其他好文 时间:
2015-01-07 19:06:53
阅读次数:
180
使用 cmd 运行如下命令> %windir%\system32\inetsrv\appcmd list site /config /xml > d:\sites.xml修改 d 盘 下的 sites.xml 文件包括批量新增的网站项目在 cmd 中 使用如下命令导入> %windir%\syste...
分类:
移动开发 时间:
2015-01-06 11:33:32
阅读次数:
119