virtualhost

Why is my PHP source code showing?

断了今生、忘了曾经 提交于 2019-11-28 01:02:42
So, I added the following to my http.conf file: Listen443 NameVirtualHost *:443 <VirtualHost *:443> DocumentRoot /PATH_TO/www ServerName www.domain.com SSLEngine on SSLCertificateFile /PATH_TO/domain.crt SSLCertificateKeyFile /PATH_TO/domain.key SSLCertificateChainFile /PATH_TO/intermediate.crt </VirtualHost> https://www.domain.com works now, but it displays the PHP source code? What could be the reason for this? "Server configuration error" is the reason ;-) It is choosing to serve PHP files as "plain content" instead of handing them to a PHP engine for processing. This doesn't have anything

mod_rewrite in vhosts configuration

笑着哭i 提交于 2019-11-27 23:53:14
问题 I'm trying to add mod_rewrite rules in the vhost config but it's not working. For the site "mysite.com" I want to redirect "/webmedia/" to the home page . Here is what I have: <VirtualHost 192.168.100.142:80> ServerAdmin serveradmin@bbgi.com DocumentRoot /home/drupal_1 ServerName mysite.com ServerAlias www.mysite.com Alias /movies /home/movies/ ErrorLog /var/log/httpd/mysite.com_err_log CustomLog /var/log/httpd/mysite.com_log special <Directory /home/drupal_1> Options FollowSymLinks Includes

Use Google Drive Directory as Apache Virtual host

为君一笑 提交于 2019-11-27 23:19:26
I am trying to set up an Apache 2.4 server with my google drive folder. I already did it with Dropbox and it's working fine, but with google drive, Apache can't find the directory. After some research, I have discovered that the real path of google drive folder is in C:\Users\ME\AppData\Local\Google\Drive\sync_config.db but it's all compiled. Is there a way to get the path ? I have already tried with this KiXtart script : http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=204938 ...which is not working anymore. It is a permissions issue. Right click 'Google Drive' Folder ->

Symfony 2 on virtual hosts

不打扰是莪最后的温柔 提交于 2019-11-27 20:16:18
I have a problem here with Symfony 2. I want to have virtual host on Windows Vista PC, so I can access my Symfony application like this myapp.local.com . What I have tried: I added these lines to hosts file 127.0.0.1 local.com 127.0.0.1 myapp.local.com These I added to apache httpd-vhosts.conf < VirtualHost myapp.local.com:80 > DocumentRoot "d:/data/www/myapp/web" ServerName myapp.local.com Alias /sf /$sf_symfony_data_dir/web/sf < Directory "/$sf_symfony_data_dir/web/sf" > AllowOverride All Allow from All < /Directory > < Directory "d:/data/www/myapp/web" > AllowOverride All Allow from All <

How to serve other vhosts next to Gitlab Omnibus server? [Full step-by-step solution]

醉酒当歌 提交于 2019-11-27 18:22:38
I installed Gitlab CE on a dedicated Ubuntu 14.04 server edition with Omnibus package . Now I would want to install three other virtual hosts next to gitlab. Two are node.js web applications launched by a non-root user running on two distinct ports > 1024 , the third is a PHP web application that need a web server to be launched from. There are: a private bower registry running on 8081 ( node.js ) a private npm registry running on 8082 ( node.js ) a private composer registry ( PHP ) But Omnibus listen 80 and doesn't seem to use neither Apache2 or Nginx, thus I can't use them to serve my PHP

setup apache virtualhost (windows)

亡梦爱人 提交于 2019-11-27 16:59:51
How to setup virtualhost for multiple domain name on windows ? I will use it for my own test projects. I have 3 projects that I need to setup and at the moment I'm using xampplite for the portable apache. www.foo-bar.com --> direct to c:\xampplite\htdocs\foo-bar\ www.abcdef.com --> directo to c:\xampplite\htdocs\abcdef\ www.qwerty.com --> direct to c:\xampplite\htdocs\qwerty\web\ I also need to access on another project but it just like typing http://localhost/my-project/ how to write the vhost configuration for that ? MicE You need to do several steps in order to make this work. 1.) Update

How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?

故事扮演 提交于 2019-11-27 16:50:13
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minutes and then reload again, the first reload is (again) painfully slow; seems like something is being cached. As can be seen below I am not using the .local TLD. My setup: Apache 2 - MySQL - PHP installed and enabled - added a couple of virtual hosts one of which I created for

Create subdomain upon user registration

随声附和 提交于 2019-11-27 14:25:46
问题 I have a website where I want users that sign up to get their own subdomain. This subdomain is virtual, and every subdomain uses the same web server files. I use PHP and Apache, and I know about Virtual Hosts, but I'm wondering where I need to put the vhosts code. First, I don't have access to httpd.conf. Second, I want this to be done automatically upon registration. I've read about virtual hosts, but didn't find anything that answers my questions. Is there anyone who can explain me how all

Exclude an alias from virtualhost proxypass

对着背影说爱祢 提交于 2019-11-27 11:47:41
问题 I've following virtual host configuration. The desired result is: If someone requests http://test.myserver.com/myapp, apache serves him from /var/www/myapp And if http://test.myserver.com/ is requested, apache redirects it to port 8069. 2nd is working but 1st is not. Can someone help please! <VirtualHost *:80> ServerName test.myserver.com Alias /myapp /var/www/myapp <Directory /var/www/myapp> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all <

VirtualHost with wildcard VirtualDocumentRoot

主宰稳场 提交于 2019-11-27 10:40:28
问题 I'm trying to create a fallback for my virtual hosts. My configuration looks like this: # Fetch all pre-defined hosts Include "conf/extra/vhosts/*.conf" # Fallback NameVirtualHost *:80 <Directory "C:/LocalServer/usr"> Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> VirtualDocumentRoot "C:/LocalServer/usr/%-1/projects/%-2+/public/" </VirtualHost> The objective here is the following: If I try to access http://test.lab/ ,