Site does not exist error for a2ensite

I have cmsplus.dev under /etc/apache2/sites-available with the following code, <VirtualHost *:80> ServerAdmin [email protected] ServerName www.cmsplus.dev ServerAlias cmsplus.dev DocumentRoot /var/www/cmsplus.dev/public LogLevel warn ErrorLog /var/www/cmsplus.dev/log/error.log CustomLog /var/www/cmsplus.dev/log/access.log combined </VirtualHost> Now when I use sudo /usr/sbin/a2ensite cmsplus.dev, I am getting the error, ERROR: Site cmsplus.dev does not exist! My webserver Apache/2.4.6 (Ubuntu) How to solve this issue? 10 … Read more

htaccess redirect to https://www

I have the following htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond !{HTTPS} off RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> I want my site to be redirected to https://www. with HTTPS, and enforcing the www. subdomain, but when I access http://www. (without HTTPS), it does not redirect me to https://www … Read more

.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

I have this error when trying to browse php files locally [Fri Apr 13 19:16:40 2012] [alert] [client 127.0.0.1] C:/AppServ/www/hr-website/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/ what is the problem ? 8 Answers 8

How to solve “Error: Apache shutdown unexpectedly”?

I’ve just re-installed XAMPP, and when I try to start my Apache server in the XAMPP Control Panel, I now get the following errors: 16:50:25 [Apache] Status change detected: running 16:50:26 [Apache] Status change detected: stopped 16:50:26 [Apache] Error: Apache shutdown unexpectedly. 16:50:26 [Apache] This may be due to a blocked port, missing dependencies, 16:50:26 … Read more

How to enable mod_rewrite for Apache 2.2

I’ve got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite. I’ve uncommented LoadModule rewrite_module modules/mod_rewrite.s but none of my rewrite rules works, even simple ones like RewriteRule not_found %{DOCUMENT_ROOT}/index.php?page=404 All the rules I’m using are working on my hosting, so they should be ok, so my question is, … Read more

Error message “Forbidden You don’t have permission to access / on this server” [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 3 years ago. Improve this question I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I … Read more

Difference between the Apache HTTP Server and Apache Tomcat? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more