virtualhost

Multiple vhosts on one and the same docker container

三世轮回 提交于 2019-12-04 05:30:21
I'm trying to run two different domains on one and the same Docker container and port. The Docker container runs CentOS. docker-compose.yml looks like so: web: image: fab/centos ports: - "80:80" volumes: - ./src/httpd.conf:/etc/httpd/conf/httpd.conf - ./src:/var/www/html - ./src/hosts:/etc/hosts environment: - VIRTUAL_HOST=dummy.dev,tests.dev I also declared both .dev domain names inside of /etc/hosts on the host computer (OS X.) It's been a while since I configured virtual hosts. My understanding was that I just needed to declare them and that Apache would automatically serve the proper files

CodeIgniter index.php URL rewriting OVH

给你一囗甜甜゛ 提交于 2019-12-04 05:09:25
问题 I readed a lot of topics about this subject but no one worked. First i share my configs: Vhost file: <VirtualHost *:80> ServerName lacangolf.raphaelaupee.fr DocumentRoot "/var/www/raphael/lacangolf/public_html" <Directory /var/www/raphael/lacangolf/public_html> Options FollowSymLinks AllowOverride All </Directory> #ErrorLog #LogLevel warn ServerSignature Off </VirtualHost> .htaccess file: RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L]

Create an Alias Directory inside a Virtual Host

岁酱吖の 提交于 2019-12-04 00:23:05
I checked here , here , here , here , and here before asking this question. I guess my search skills are weak. I am using the WampServer version 2.2e . I have a need like, I need a virtual path inside a virtual host. Let me say the two hosts that I have. Primary Virtual Host (Localhost) NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot "C:/Wamp/www" </VirtualHost> My Apps Virtual Hosts <VirtualHost *:80> ServerName apps.ptrl DocumentRoot "C:/Wamp/vhosts/ptrl/apps" ErrorLog "logs/apps-ptrl-error.log" CustomLog "logs/apps-ptrl-access.log" common <Directory "C:/Wamp/vhosts

Apache - Domain for localhost to access folders as http://folder.local

不羁的心 提交于 2019-12-03 17:04:18
I'm running XAMPP on Ubuntu and I'd like to create a virtual host for my projects, so that I have a tld assigned to my server root directory (for example .local) and folders inside it accessible through URLs as http://foldername.local . Also, how much more complicated would it be to use .htaccess to have http://someotherdomain.local redirect to the /foldername path in the server root? I've managed to do it on my own. It is possible to do it, however you'll need to install a DNS server . Note: I decided to use .dev as my local domain, so in the following examples, the dev part will refer to my

Apache - Restrict to IP not working

99封情书 提交于 2019-12-03 16:24:58
问题 I've a subdomain that I only want to be accessible internally; I'm trying to achieve this in Apache by editing the VirtualHost block for that domain. Can anybody see where I'm going wrong? Note, my internal IP address here are 192.168.10.xxx. My code is as follows: <VirtualHost *:80> ServerName test.example.co.uk DocumentRoot /var/www/test ErrorLog /var/log/apache2/error_test_co_uk.log LogLevel warn CustomLog /var/log/apache2/access_test_co_uk.log combined <Directory /var/www/test> Order

How to configure multiple Virtual Hosts on AWS EC2 Running Ubuntu? [closed]

巧了我就是萌 提交于 2019-12-03 16:16:43
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . I'm trying to configure a virtual host to my EC2 instance. I'm using ubuntu on my EC2 instance and apache2 as web server. I have 3 applications (web-based) in 3 different folders in /var/www: - /var/www/app_A - /var/www/app_B - /var/www/mywebsite I want people to only be able to access app_A and app_B using IP address (I've attached elastic IP to my EC2 instance) as in http://my.ip.address/app_A and

Two separate django sites in WSGI (root and /two)

此生再无相见时 提交于 2019-12-03 16:05:51
After hours of trying I've decided to give in and ask SO for help :) I have two Django 1.6 sites running on Apache2 on Debian 7. I have one vhost. I want the root domain for the vhost to go to one django site (example: mydomain.com), and a separate alias for the second site (example: mydomain.com/two). I can get two alias to work like below: WSGIDaemonProcess test1 python-path=/usr/local/projects/project_one:/usr/local/virtualenvs/project/lib/python2.7/site-packages WSGIScriptAlias /one /usr/local/projects/project_one/project_one/wsgi.py <Location /one> WSGIProcessGroup test1 </Location>

MAC OS X: MAMP Environment & Virtual Hosts

只愿长相守 提交于 2019-12-03 15:04:45
I'm not sure what's happening here, but I'm running MAMP 1.9 on MAC OS X. In my httpd.conf file, the DocumentRoot is set to the default htdocs path. Within the htdocs folder, I've created a number of "subsites" in an effort to set them up as Virtual Hosts.... I can get to the paths specified, but they all seem to default to the first one I set up. Essentially, the first VirtualHost I configured was for site1.localhost.com. I've since configured site2.localhost.com and site3.localhost.com. However, going to either of the last two addresses, always seems to redirect me to site1.localhost.com.

Limit Bandwidth per Apache Virtual Host [closed]

假如想象 提交于 2019-12-03 14:04:59
问题 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 6 years ago . I'm going to launch a 2GB Linode VPS to host a couple of Wordpress CMS sites and one based on Yii framework. I planned on using Apache virtualhosts to assign each site it's own webroot on a user's home directory instead of leaving everything in /var/www Is it possible to limit the bandiwdth allocated to each

Wampserver 403 on named virtual hosts outside of /www

风格不统一 提交于 2019-12-03 12:13:37
问题 Wampserver tells me accessed denied when I try making a virtual host outside of the c:/wamp/www/ directory. I can make one fine within that directory. Even making a symbolic link to the folder works, but I would rather not have to use symbolic links. Why doesn't it work? Here is the code I use at the end of httpd.conf NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "c:/wamp/www" ServerName localhost ServerAlias localhost </VirtualHost> <VirtualHost *:80> ServerName local.cascade