vhosts

Eclipse Xdebug Freezes at 57%

五迷三道 提交于 2019-12-07 16:50:02
问题 My problem: When launching a debug configuration from Eclipse for one of my php pages, the page opens successfully in Chrome but the Eclipse debugger freezes at 57% (in the bottom right hand corner of Eclipse) and never progresses further. The set breakpoints are never reached. My setup: MAMP 2.2 PHP 5.3.3 Eclipse Kepler Eclipse PDT Xdebug 2 virtual hosts with roots at /Applications/MAMP/htdocs Apache Port: 80 MySql Server Port: 3306 My virtual hosts setup within MAMP is working fine. Below

Dynamic apache log directory based on hostname

萝らか妹 提交于 2019-12-06 16:46:53
I have a PHP application which is used by multiple domains. To avoid maintaining multiple vhosts, I have just setup a single "default" Apache vhost to direct any incoming request to the server to the application directory. What I want to do is to set the Apache access and error log paths dynamically based on the hostname hitting the server. For example, I would like to set the log paths to be something like: /var/log/application_name/example.com/error.log /var/log/application_name/example.com/access.log when a request to example.com is made. Is there a viable way to do this? I've looked at

run external programs on virtual server

為{幸葍}努か 提交于 2019-12-06 08:36:35
I want to install small programs accessible through the command line (of linux OS) to a server and run them with PHP. I want to install Apache, vhost on my machine... Is there a way to run these external applications on my virtual server, on my system, so i can experiment with PHP calls? We do exactly this all the time. I call them voodoo pages. Here's some working code: <?php $command="uptime"; $output; $retval; $errors=""; exec ( $command , &$output, &$retval ); echo $output[0]."\n"; unset($output); ?> And the output to the webpage served: 13:40:19 up 22 days, 23:14, 0 users, load average: 0

Host multiple websites using Node.js Express

China☆狼群 提交于 2019-12-06 00:05:08
问题 I am having problems configuring two different Node.js applications with different domains. Have two directories "/abc/" -> express-admin setup (backend) -> admin.abc.com and "/xyz/" -> express setup (frontend) -> abc.com I need admin.abc.com to point to express-admin setup and abc.com to express setup. I have vhost installed and both the site listens to port 80. Have added app.use(vhost('abc.com', app)); // xyz/app.js file app.use(vhost('admin.abc.com', app)); // abc/app.js file My problems:

Eclipse Xdebug Freezes at 57%

断了今生、忘了曾经 提交于 2019-12-05 21:42:55
My problem: When launching a debug configuration from Eclipse for one of my php pages, the page opens successfully in Chrome but the Eclipse debugger freezes at 57% (in the bottom right hand corner of Eclipse) and never progresses further. The set breakpoints are never reached. My setup: MAMP 2.2 PHP 5.3.3 Eclipse Kepler Eclipse PDT Xdebug 2 virtual hosts with roots at /Applications/MAMP/htdocs Apache Port: 80 MySql Server Port: 3306 My virtual hosts setup within MAMP is working fine. Below are screenshots concerning the Xdebug setup: I suspect the problem is being caused by my virtual hosts.

a2ensite from script path

与世无争的帅哥 提交于 2019-12-05 15:49:53
问题 I'm trying to automate some new site deployment in my testing environment. My script auto generates the apache vhost file in /etc/apache2/sites-available/testsite.com then a2ensite is run via the same script a2ensite /etc/apache2/sites-available/testsite.com I get: ERROR: No site found matching /etc/apache2/sites-available/testsite.com! The script is being run as root. I read that you must a2ensite from the sites-available directory but if this is being done via script how would I tell

Getting VHosts working with EasyPHP

眉间皱痕 提交于 2019-12-04 21:33:53
问题 So I've been trying to setup vhosts on my new Windows 10 Installation with EasyPHP Devserver 16.1. I've modified etc/vhosts to include my new domain (mysite.local), which works, but still points to the default easyphp directory. So I modified httpd-vhosts.conf to point that domain to my new directory: <VirtualHost *:80> DocumentRoot "C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:\Users\Chris\Documents\Web

How to point all subdomains to index.php [closed]

青春壹個敷衍的年華 提交于 2019-12-04 21:08:12
I'm trying to host a site on which user profile pages come with unique subdomains, such as username.sitename.com. I would like an Apache/VirtualHost solution for pointing *.sitename.com to sitename.com/index.php, where I could assort, which subdomain comes with a profile page and which would show 404 error. Please help me setting up the .htaccess You need only a correct VirtualHost setup. <VirtualHost *:80> ServerName example.com ServerAlias *.example.com [...] </VirtualHost> As the index.php is in the DirectoryIndex it is called automatically, regardless which domain is called. Do dynamically

How to setup server with Domain name on local ubuntu14.04?

删除回忆录丶 提交于 2019-12-04 20:47:24
How to setup domain name at local machine on lamp ? Steps: 1. Copy sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/yourdomain.conf 2.Edit yourdoamin.conf: sudo gedit /etc/apache2/sites-available/yourdomain.conf 3.Configure DomainName and IP Address: <VirtualHost 12.0.0.12:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match

Accessing local Wordpress site within the network using WAMP?

一个人想着一个人 提交于 2019-12-04 19:31:35
Allright this driving me nuts! I have spent couple of hours trying to find a solution of how to access my Wordpress site from outside my network, when no easy solution was found I'm OK with just being able to accessing it from another device within my network. It turned out to be a tricky part as well. I just don't know how to configure this. I run virtual hosts using WAMP likeso: In httpd-vhosts.conf: <VirtualHost *:80> DocumentRoot "I:\web_dev\wordpress" ServerAlias wordpress.local ServerName wordpress.local <Directory "I:\web_dev\wordpress"> Options Indexes FollowSymLinks AllowOverride None