Under Windows, Apache's configuration file is usually only one, which is httpd.conf. But when I installed Apache2 with the Apt-get install apache2 command on Ubuntu Linux, I found that its httpd.conf (located in the/etc/apache2 directory) was empty.
Finally, we installed LAMP with apt-get in Debian. Previously, we used CentOS for compilation and installation, which was faster than now, but the memory usage was not optimized, there is no time for further research... After installing yum, it is
Install apache2To execute the install command in terminal:sudo Install apache2Then, we can find the Apache2 have been installed in "/etc/" directory.[Email protected]:cd/etc/Apache2[email protected]:/etc/apache2$ Apache2-Versionserver Version:apache/
Error message.[Wed Nov 05 23:57:10 2014] [Alert] [Client 127.0.0.1] .../wamp/www/.../.htaccess:invalid command ' Rewriteengine ', perhaps misspelled or defined by a module Not included in the server configuration.The rewriteengine command requires
Enable the mod_rewrite module for Apache2 on Ubuntu server. The mod_rewrite module is not tested and is used by LinuxIDC.Sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite.
Senerio:I need to deploy Allegrograph 5.0 Triplestore in our lab's virtual server and make it publicly accessible at http://xxx.xx . xxx.edu/agwebview/, I did the "following to do it work."Need to has a virtual server allocated and Apache2 enabled
Need to turn on the Apache2 rewrite module1. Open/etc/apache2/apache2.confChange allowoverride None in the file to allowoverride all2, modify the mods-enable configuration, add a software linkcd/etc/apache2/mods--S. /mods-avaiable/rewrite.load
Configure the GIT server on Ubuntu
Over the past few days, I have been tossing over the GIT version management server. I feel a little too large, and I don't have enough permissions. The encrypted file does not match the user name ......
However,
Already in the/etc/apache2/httpd.conf.
Removed the
The previous comment symbol, phpinfo () function shows that the rewrite module is loaded
Add at the end of the httpd.conf file
RewriteEngine onRewriteRule ^/t_(.*).html$ /test.php?id=$1
Rewrite
./configure/
--prefix=/opt/apache2/
--enable-so/
--enable-expires/
--enable-proxy/
--enable-deflate/
--enable-rewrite/
--enable-headers/
&& make && make install
1 default installation, specify prefix only (specify installation path)
Then look at
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.