virtualhost

WAMPServer, access server from mobile phone

会有一股神秘感。 提交于 2019-12-17 02:25:26
问题 So I set up a few virtual hosts with unique urls and they work just fine on the desktop. However, when I connect a mobile device on the network, it can't seem to access anything properly but the default localhost virtualhost and that's only when it's the only virtualhost I have up. My setup and coding is pretty much this except with a different site title wamp server 3.0 virtual host on another device and while that solution redirects me to my unique url, it has a lack of images on a default

VirtualDocumentRoot handling non-existent folders

我与影子孤独终老i 提交于 2019-12-13 16:08:34
问题 Using Apache, I have set up the VirtualDocumentRoot and it works this way: <VirtualHost *:80> UseCanonicalName Off ServerName app.example.com ServerAlias *.example.com VirtualDocumentRoot "/home/domains/example.com/%1" <Directory "/home/domains/example.com/*"> Options Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all </Directory> </VirtualHost> If I put the URL of http://mail.example.com , the DocRoot becomes /home/domains/example.com/mail , if it is http://www.example

Ubuntu, Apache, virtualhost and Access forbidden

♀尐吖头ヾ 提交于 2019-12-13 07:41:43
问题 I made virtualhost like: here. My directory is in my home folder. When I try to enter my new domain or anywhere I get 403 error:/ What happened? 回答1: You can give the details of the error in the log file /var/log/apache2/error_log apache probably need read access to the following documents: /home/.htaccess /home/user/.htacces [...] /home/user/path/to/project/.htaccess 回答2: I answer this question in the case you are still stuck. I presume that you have set the permissions the correct way. The

Apache rewrite rule different if capture is empty

前提是你 提交于 2019-12-13 05:40:38
问题 what I have so far is: <VirtualHost 111.111.111.111:80> ServerName ex.me ServerAlias www.ex.me Options +FollowSymLinks RewriteEngine on RewriteRule ^/(.*)$ http://exemple.com/foo/$1 [R=301,L] </VirtualHost> what I need is if (.*) is empty, it rewrites to http://exemple.com and if it has something, it redirects to http://exemple.com/foo/$1 -- I don't know how to do the if empty rule. right now. Right now it redirects to http://exemple.com/foo/ no matter if there is something captured or not.

Nginx on Ubuntu giving “address already in use” error

元气小坏坏 提交于 2019-12-13 05:13:30
问题 I'm trying to setup my VPS (Ubuntu on DigitalOcean) to run Meteor apps but am hitting a snag early on dealing with Nginx configuration. When I attempt to restart Nginx, in order for it to load a new .conf file for a domain name, it shows this error: [emerg] 3597#0: bind() to 0.0.0.0:80 failed (98: Address already in use) It repeats it 5 times in the logs and ends with: [emerg] 3597#0: still could not bind() Here's a dump of Nginx's main config (/etc/nginx/nginx.conf): user www-data; worker

Mod_Rewrite .Htaccess

孤街醉人 提交于 2019-12-13 04:39:33
问题 I have a problem which I could not find during my online search. I have successfully made a wildcard sub-domain and any sub domain to the main domain points to the folder. I am looking to create link URI to Parameters like 1- .domain.com/location/locationname to 2- .domain.com//location.php? locname= and then 1- .domain.com/location/locationname/category/categoryname/item/itemname to 2- .domain.com//orderitem.php?locname=locationname&ordercategory=categoryname&orderitem=itemname (2) is

Apache, PHP, Centos 6

房东的猫 提交于 2019-12-13 03:53:53
问题 When I navigate to my website (e.g. www.mydomain.com), the browser opens a pop-up window to download a file. In my httpdocs folder i have: - index.html - index.php () - I do NOT have .htaccess file Checking in the browser: - www.mydomain.com/index.html -> it works fine - www.mydomain.com/index.php -> it works WRONG (it downloads the index.php file) - www.mydomain.com -> it works WRONG (it download "descarga" file with index.php contents). PHP is installed, and when I run the php -v command,

Two domain & their sub-domain are mapped to the same IP so how can i host my different application to the same tomcat server?

怎甘沉沦 提交于 2019-12-13 03:39:09
问题 I have two different domain & sub domain. For example :- Domain 1 :- example1.com IP :- XXX.XX.XX.201 Domain 2 :- example2.com IP :- XXX.XX.XX.202 (This is a virtual hosting on above IP addr XXX.XX.XX.201) I am also using sub-domains for the same like, Domain 1 :- test.example1.com IP :- XXX.XX.XX.201 Domain 2 :- test.example2.com IP :- XXX.XX.XX.202 (This is a virtual hosting on above IP addr XXX.XX.XX.201) I have to access the application in such way that if i access example.com it will

How to remove index.php from url slim framework setting VirtualHost?

天涯浪子 提交于 2019-12-13 01:19:15
问题 reference image: In this route I have the example: C:\wamp\www\api I work with centos in VirtualBox. In the console of centos I can get into the same folder with this route: cd /var/www/html/sistemaTareas/api Well, in API folder I have: index.php | .htaccess | Slim Index.php: <?php require 'Slim/Slim.php'; \Slim\Slim::registerAutoLoader(); $application = new \Slim\Slim(); $application->get('/hello/:firstname/:lastname', function ($firstname,$lastname) { echo "hola, $firstname $lastname"; });

Apache: see named virtual hosts from LAN

假装没事ソ 提交于 2019-12-13 00:36:18
问题 I use some Virtual Hosts on Apache to speed up development. My configurations look like this: <VirtualHost 127.0.0.1> ServerName my_server.dev DocumentRoot "my_root" <Directory "my_public_files"> AllowOverride All Allow from All </Directory> </VirtualHost> <VirtualHost 127.0.0.1> ServerName another_server.dev DocumentRoot "another_root" <Directory "other_public_files"> AllowOverride All Allow from All </Directory> </VirtualHost> and so on. I also add myserver.dev and another_server.dev to the