virtualhost

Run cakephp app in apache alias

六眼飞鱼酱① 提交于 2019-12-12 18:24:13
问题 I'm trying to deploy a cakephp 3.1 app in a apache 2.4 powered server. My boss would like to place the app in a directory different of server's documentroot ( DocumentRoot "/var/www/html" in my httpd.conf file), since multiple webapps will be served by this server. Instead of virtualhosts, he would like to use aliases (host/app1, host/app2 etc). So I'm trying to configure it this way. I put an alias to my cake app ( Alias "/scqa" "/opt/scqa/webroot" in my httpd.conf file) and wrote a

ssl wildcard sub domain www.sub.domain.com

牧云@^-^@ 提交于 2019-12-12 09:58:50
问题 I've purshase a wildcard ssl certificat for *.domain.com. I use: startssl provider for ssl certificat Apache VirtualHost I want every request to be redirected to HTTPS NO-WWW I managed to do this: http ://sub.domain.com => https ://domain.com is ok http :// www .sub.domain.com => https ://sub.domain.com is ok BUT https ://www.sub.domain.com => https ://domain.com is NOT OK (NET::ERR_CERT_COMMON_NAME_INVALID) Can you help me ? <VirtualHost *:80> ServerName sub.domain.com Redirect permanent /

AMPPS Virtualhost deosn't work

不羁岁月 提交于 2019-12-12 09:46:42
问题 I update /etc/hosts and test the ping, the domain works; I use ampps admin tool to add domain, and verify the modification as the content below. <VirtualHost 127.0.0.1:80> <Directory "/www/companyname"> Options FollowSymLinks Indexes AllowOverride All Order deny,allow allow from All </Directory> ServerName local.companyname.com ServerAlias local.companyname.com ScriptAlias /cgi-bin/ "/www/companyname/cgi-bin/" DocumentRoot "/www/companyname" ErrorLog "/Applications/AMPPS/apache/logs/local

Multiple Virtual Sites with Wampserver

时光怂恿深爱的人放手 提交于 2019-12-12 04:42:47
问题 I've having a problem creating multiple virtual hosts, I've edit C:\wamp\alias\web.local to look like this: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@website1.local DocumentRoot "C:/Documents and Settings/username/workspace/www.website1.com" ServerName website1.local <Directory "C:/Documents and Settings/username/workspace/www.website1.com"> DirectoryIndex index.php index.htm index.html Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

Make php variable/constant available to all scripts ad all sites

落花浮王杯 提交于 2019-12-12 03:57:58
问题 I have about 150 websites each on its own Apache virtual host running php7 on ubuntu 16. Each site has a config.php in the root dir with constants in it: define('MYVAR','myval'); I want to make a new constant that I will have to update every 2 months or so. I don't want to open each config and edit them. How can I have each site/virtual host be aware of this constant I want to set. I want to be available everywhere just like $_SERVER['REMOTE_ADDRESS']; is. I do not want to create a file them

Can a Virtual Host on Apache access the files of another Virtual Host?

久未见 提交于 2019-12-12 03:29:48
问题 I'm looking to set up a few virtual hosts for different domains for a few friends, and want to know if one virtual host can access files from another host, whether it be via PHP or any other option or if it's totally isolated, so any scripts they can run would only affect their area. 回答1: An Apache "virtual host" is just a mapping of a hostname (or ip address or port) to a particular set of configuration directives. There is no "containment" or isolation implied by this; everything is still

External access web page with VirtualHosts and Wampserver

…衆ロ難τιáo~ 提交于 2019-12-12 02:17:42
问题 I am a newbie in wampserver. I installed it and I can acesss web pages with localhost port 8000 without problems. Yes, I changed default port to 8000 and all works well with localhost. Now, I created a simple project web page and I need external access. Here is my settings: But I get the next error when I try to acesss remotely: Forbidden You don't have permission to access / on this server. Apache/2.4.23 (Win64) PHP/5.6.25 Server at agenda.myvnc.com Port 8000 //agenda.myvnc.com is my elastic

meteor app with apache as proxy is (probably) redirecting all pages

蓝咒 提交于 2019-12-12 02:14:05
问题 I run a meteor app on production, using Meteor UP to deploy, I use apache as a proxy. When I surf directly to a page (www.example.net/any-page) on production, i'm being redirected (to www.example.net) After following the answer from this question (thx to comments), I currently have this apache config: <VirtualHost *:80> ServerName example.net Redirect permanent / http://www.example.net/ </VirtualHost> <VirtualHost *:80> ServerName www.example.net ServerAlias example.net ProxyRequests off

Wordpress not working when using Apache virtual hosts

扶醉桌前 提交于 2019-12-12 01:31:32
问题 I currently use virtual hosts on my computer so that I can manage multiple sites on my computer. Currently, I use c:/vhosts/php (default localhost) for regular PHP development, c:/vhosts/BTS for Wordpress, and c:/vhosts/cake for CakePHP development. (see below). Now when I launch my WAMPP and go to http://BTS, it loads the index page but nothing else loads fine. When trying to click on the links, it links to http://localhost/xxxxx instead of http://BTS/xxxxx. What am I missing here? I don't

403 Forbidden in root [closed]

匆匆过客 提交于 2019-12-11 23:55:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm setting up a webserver with virtual hosts, and I'm having a hard time getting around this 403 Forbidden error. The error claims something is pointing to root / , but the directives are set for any requests for the domain to be routed to it's directory: <VirtualHost *:80> DocumentRoot /var/www