virtualhost

Apache - treat url path as virtual host

旧城冷巷雨未停 提交于 2019-12-20 12:04:14
问题 The problem is that I have only one domain name on which 3 different products need to be run (2 of them PHP based, 1 python). So what I need to do is to treat path in url as different virtual host; ie: www.domain.com/first_url/ www.domain.com/second_url/ www.domain.com/third_url/ Where first to third will act as separate virtual hosts. Any clue how to do this? 回答1: You probably want to do something with the apache-config directives, since you're asking for a virtualhost solution. Apache can

AWS-EC2, how to set multiple public sites with just one instance?

一笑奈何 提交于 2019-12-20 10:42:10
问题 I have read many articles and also topics in SO, but could not find out any further help. I have on instance of AWS-EC2, and want to hold several public sites within it. I have already get my first public site to run like below: http://ec2-50-xxx-214-xxx.us-west-2.compute.amazonaws.com/ What I have done is just added a file which named manmu under /etc/apache2/sites-available <VirtualHost *:80> ServerName ec2-50-xxx-214-xxx.us-west-2.compute.amazonaws.com DocumentRoot /home/ubuntu/manmu/YYYYY

Tomcat cookies not working via my ProxyPass VirtualHost

天涯浪子 提交于 2019-12-20 10:38:05
问题 I'm having some issues with getting cookies to work when using a ProxyPass to redirect traffic on port 80 to a web-application hosted via Tomcat. My motivation for enabling cookies is to get rid of the "jsessionid=" parameter that is appended to the URLs. I've enabled cookies in my context.xml in META-INF/ for my web application. When I access the webapplication via http://url:8080/webapp it works as expected, the jsessionid parameter is not visible in the URL, instead it's stored in a cookie

How to configure subdomains for Apache2 on Ubuntu?

狂风中的少年 提交于 2019-12-20 08:50:16
问题 I followed these instructions to configure subdomains for apache. I can access the subdomain using http://localhost/test though I cannot access it via http://test.localhost . How can I realize the latter? # /etc/apache2/sites-available/test.localhost <VirtualHost *:80> # Server name ServerName test.localhost # Document root DocumentRoot /var/www/test/ # Custom log file locations ErrorLog /var/www/test/logs/error.log CustomLog /var/www/test/logs/access.log combined </VirtualHost> 回答1: As Mark

Accessing virtual host from computer on same local network

余生颓废 提交于 2019-12-20 08:30:37
问题 I am trying to make a setup so that I can access my website on a virtual host in computer A from computer B. Both A and B are on the same network. I am using xampp on Win 7. So here is as the problem goes computer A(server) has a virtual host configuration as follows in the httpd-vhosts.conf file. NameVirtualHost project:81 <VirtualHost project:81> DocumentRoot "D:/work/website" ServerName project:81 <Directory "D:/work/website"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride

Deploy Django on Apache?

你离开我真会死。 提交于 2019-12-20 07:17:38
问题 I create project using Django 1.8. now ,I want deploy it to server.when I run this command in Ubuntu every thing working find. python manage.py runserver Next , I create vertuelhost and enbal key.com site in Apache. vertualhost file code. ( key.com.conf ) <VirtualHost *:80> ServerAdmin admin@key.com ServerName key.com ServerAlias www.key.com WSGIScriptAlias / /home/umayanga/Desktop/view_site/serialKey_gen_site/mysite/wsgi.py <Directory "/home/umayanga/Desktop/view_site/serialKey_gen_site

How to get rid of the public path in laravel on wamp

十年热恋 提交于 2019-12-20 06:47:46
问题 I have a quick issue. I am trying to use Laravel for the first time. To do so, I'm using Wamp. And I don't know if this is important, but I set the DocumentRoot of wamp at this address : DocumentRoot "C:\Users\Bebop\Documents\Site Internet/" I using wamp for a lot of different websites in a folder called Sites. When I access to one of the site I go to : localhost/Sites/thewebsite. So really what I want is just to get rid of the public folder in the path to the Laravel website. For the moment

MAMP on Mac redirects virtual localhost to https

帅比萌擦擦* 提交于 2019-12-20 05:38:29
问题 Chrome Version : 67.0.3396.87 Webserver : Apache When I hit http://www.assignmenthelpdesk.local , it redirects to https://www.assignmenthelpdesk.local/ How can I stop MAMP to redirect to https? Thanks in advance. /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf details below: <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs/AssignmentHelpDesk ServerName www.assignmenthelpdesk.local <

Virtual Host with MAMP

旧巷老猫 提交于 2019-12-20 04:23:18
问题 I installed Drupal 8 with MAMP. My MAMP preference number for Apache Port : 80 , Nginx Port: 80 and MySQL Port: 8889 In etc/hosts file, I add 127.0.0.1 mmcast.test In httpd.conf file, Listen 80 and uncomment the following line. # Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf In httpd-vhosts.conf file, NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> ServerName mmcast.test

cURL on local dev network problem with virtual host naming

我的梦境 提交于 2019-12-19 04:02:16
问题 Trying to do some local testing on a virtual server, the problem is cURL is returning a http_code => 0 I think it's to do with my virtual host naming. Virtual Host Name: dev.project the cURL request is adding http:// if I ping: dev.project from the command line, I get a hit. If I try it with http://dev.project I get unknown host. Is there a curl_setopt option just to use the hostname? I'm no sure if I can use the IP as there are several projects on the server, or would Apache handle this?