virtualhost

Google Chrome virtual hosts not working with ERR_NAME_NOT_RESOLVED error after update

妖精的绣舞 提交于 2019-12-03 09:03:03
问题 I started getting this error for all my local virtual hosts on apache in the morning when I updated my Chrome to the latest version on ubuntu. While all of them work on other browsers chrome started misbehaving with ERR_NAME_NOT_RESOLVED error. Screen shot for the error 回答1: Got it fixed like this: Clear up the Chrome's DNS cache by typing this in the Chrome browser chrome://net-internals/#dns Screenshot -> Flushing Chrome DNS cache You will see a button "Clear Host Cache". Press that DNS

Send subdomain to node.js

孤街醉人 提交于 2019-12-03 06:59:31
问题 My work runs a couple different internal web apps on an ubuntu server (10.10) running apache. I'm currently developing another web app, and am seriously considering developing on top of a custom-built node.js web server. My reasoning for wanting to do this is: Speed/Scalability Security - Pages will be served with a switch...case, instead of just serving the (potentially malicious) user whatever they ask for. Ease of setup - my intentions are for this to be an open-source project, and node.js

Proxying with SSL [closed]

a 夏天 提交于 2019-12-03 05:30:44
问题 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 have a Linux host running Apache and a Windows host running IIS. I have a domain that points to the Linux host and need to relay (proxy) requests for it to IIS; I thus have the following virtual host definition in Apache (which works just fine): <VirtualHost 192.168.0.2:80> ServerName www.acme.com DocumentRoot

Multiple Sites in Django

橙三吉。 提交于 2019-12-03 05:19:58
问题 Does anyone know how to add multiple domains to Django. I've tried following the guides here Multiple Sites under single Django project with no luck. My configuration looks like this Settings /opt/django/project/settings.py /opt/django/project/domain1_settings.py Url /opt/django/project/urls.py /opt/django/project/domain1_urls.py wsgi /opt/django/project/domain1/domain1.wsgi Apache /etc/httpd/conf.d/django.conf <VirtualHost * > ServerName domain1.co.uk ServerAlias www.domain1.co.uk direct

Apache virtual host without domain name

烈酒焚心 提交于 2019-12-03 05:11:30
问题 I have a VPS with apache2 installed and I would like to access some PHP projects without a domain name just with the IP address. For example: http://162.243.93.216/projecta/index.php http://162.243.93.216/projectb/index.php I have other projects with domain like example.com, in my directory /var/www/ /html/ info.php /projecta/ /projectb/ /example/ When I go to http://162.243.93.216/info.php then /var/www/html/info.php is opened. My file 000-default.conf <VirtualHost *:80> ServerAdmin

Disable directory listing on apache; but access to individual files should be allowed

浪尽此生 提交于 2019-12-03 04:24:36
问题 I do not want to use .htaccess. How should I change my Directory attributes? <VirtualHost *:80> ServerName abc.com DocumentRoot /usr/share/uploads <Directory " /usr/share/uploads"> Order allow,deny Allow from all </Directory> </VirtualHost> 回答1: If you are using Debian/Ubuntu, just go to terminal and type sudo a2dismod autoindex sudo service apache2 restart If you are using Centos/Fedora, just do: mv /etc/httpd/conf.d/autoindex.conf /etc/httpd/conf.d/autoindex.bkp /etc/init.d/httpd restart

Limit Bandwidth per Apache Virtual Host [closed]

大城市里の小女人 提交于 2019-12-03 03:59:43
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 Apache virtualhost? I was planning on using Debian Squeeze or CentOS for this box. Not that I envision any of the sites maxing out the 4TB of bandwidth allocated from Linode but it just seems like good practice. I think using a VPS is the best option as none of the sites are particularly

Does Apache2 support virtual hosting of subdomains?

拜拜、爱过 提交于 2019-12-03 03:58:57
问题 Currently my Apache server is set up like so <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www </VirtualHost> The problem is that everything below /var/www is accessible from everywhere else. If I have a web page /var/www/john/bio.html , then that web page could borrow scripts/pictures from var/www/jane/ I want to set up my Apache server like so <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www </VirtualHost>

Wampserver 403 on named virtual hosts outside of /www

本小妞迷上赌 提交于 2019-12-03 03:32:29
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 DocumentRoot c:/wamp/www/cascade/ </VirtualHost> <VirtualHost *:80> ServerName local.md9 ServerAlias local.md9

Apache Virtual Host (Subdomain) access with different computer on LAN

百般思念 提交于 2019-12-03 03:21:27
问题 I am currently trying to configure the Virtual Host (Subdomain) of my Apache HTTP Server so it can be accessed with another computer on my LAN. The current setup of Apache with PHP and MySQL works locally on the same physical machine. So I have two Virtual Host setup (development and cms) running on a non-default port of 50080. The machine of the server have a IP of 10.0.0.10. From the same physical machine, I can access the two Virtual Host using: development.localhost:50080 cms.localhost