Hi Scrutinizer, thanks for the time but I was able to find a fix to this finally. What I did was I changed NameVirtualHost *:80 to NameVirtualHost test-kalc.tk and added a new NameVirtualHost for test2-kalc.tk.
Here's how they look like:
I also changed <VirtualHost *:80> to <VirtualHost test-kalc.tk>. I did the same thing to other host.
I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues?
NameVirtualHost *:80
#Default catch all ... (5 Replies)
I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Hi,
I am facing some problem with Apache to Tomcat forwarding. I have Tomcat (6.0.18) behind Apache (2.2). I want to use ‘https' for receiving request from the client. This request, when forwarded by Apache to Tomcat, will use ‘http'. My application's name is ‘abc', which is deployed in... (1 Reply)
Hello,
I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
can anyone help me to write a script to delete the virtualhost entry in apache vhosts.conf file:
hint: when i enter ./deletedomain test.com it should delete the test.com virtualhost entry from vhosts.conf file (2 Replies)
I'm trying to set up two virtual hosts. Here's my httpd config:
<Directory /Users/userX/dev/sandbox-2>
Order deny,allow
deny from All
Allow from localhost
</Directory>
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot "/Users/userX/dev/sandbox-2"
... (0 Replies)
Hi,
I use debian jessie, apache. I am not allowed to post links here at this forum, I am new user.
I made subdomain porodin.predicsasa.com and it is working, vhost file is porodin.conf in /etc/apache2/sites-available
then I copied vhost file and made it hosting.conf, did a2ensite hosting and it... (5 Replies)
Hello,
My apache user generate one file :
# ls -lsa /tmp/reference_file.csv
76 -rwxrwxrwx 1 apache apache 69921 Aug 16 14:14 tmp/reference_file.csv
the user and the group belong to apache, but when i am trying to change it :
su -l apache -s /bin/bash
-bash-3.00$ whoami
apache... (7 Replies)
hi,
Earlier I had this thread posted on "UNIX for Experts" Group here in unix.com, but somehow no one bothered to respond, so I thought someone might be able to help me here.
In short,
I have to make accessible a directory via SVN to all 5 developers, call it /var/www/html/beta3
... (0 Replies)
I have installed apache2 on ubuntu 16.00 and checked the logs and no errors
apt list --installed | grep apache2
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
apache2/xenial-updates,xenial-security,now 2.4.18-2ubuntu3.5 amd64 ... (0 Replies)
Discussion started by: DOkuwa
0 Replies
LEARN ABOUT DEBIAN
devel::nytprof::apache
Devel::NYTProf::Apache(3pm) User Contributed Perl Documentation Devel::NYTProf::Apache(3pm)NAME
Devel::NYTProf::Apache - Profile mod_perl applications with Devel::NYTProf
SYNOPSIS
# in your Apache config file with mod_perl installed
PerlPassEnv NYTPROF
PerlModule Devel::NYTProf::Apache
If you're using virtual hosts with "PerlOptions" that include either "+Parent" or "+Clone" then see "VIRTUAL HOSTS" below.
DESCRIPTION
This module allows mod_perl applications to be profiled using "Devel::NYTProf".
If the NYTPROF environment variable isn't set at the time Devel::NYTProf::Apache is loaded then Devel::NYTProf::Apache will issue a warning
and default it to:
file=/tmp/nytprof.$$.out
The file actually created by NTProf will also have the process id appended to it because the "addpid" option is enabled by default.
See "ENVIRONMENT VARIABLES" in Devel::NYTProf for more details on the settings effected by this environment variable. Try using
"PerlPassEnv" so you can set the NYTPROF environment variable externally.
Each profiled mod_perl process will need to have terminated before you can successfully read the profile data file. The simplest approach
is to start the httpd, make some requests (e.g., 100 of the same request), then stop it and process the profile data.
Alternatively you could send a TERM signal to the httpd worker process to terminate that one process. The parent httpd process will start
up another one for you ready for more profiling.
Example httpd.conf
It's often a good idea to use just one child process when profiling, which you can do by setting the "MaxClients" to 1 in httpd.conf.
Using an "IfDefine" blocks lets you leave the profile configuration in place and enable it whenever it's needed by adding "-D NYTPROF" to
the httpd startup command line.
<IfDefine NYTPROF>
MaxClients 1
PerlModule Devel::NYTProf::Apache
</IfDefine>
VIRTUAL HOSTS
If your httpd configuration includes virtual hosts with "PerlOptions" that include either "+Parent" or "+Clone" then mod_perl2 will create
a new perl interpreter to handle requests for that virtual host. This causes some issues for profiling.
If "Devel::NYTProf::Apache" is loaded in the top-level configuration then activity in any virtual hosts that use their own perl interpreter
won't be profiled. Normal virtual hosts will be profiled just fine.
You can profile a single virtual host that uses its own perl interpreter by loading "Devel::NYTProf::Apache" inside the configuration for
that virtual host. In this case do not use "PerlModule" directive. You need to use a "Perl" directive instead, like this:
<VirtualHost *:1234>
...
<Perl> use Devel::NYTProf::Apache; </Perl>
...
</VirtualHost>
LIMITATIONS
Profiling mod_perl on Windows is not supported because NYTProf currently doesn't support threads.
SEE ALSO
Devel::NYTProf
AUTHOR
Adam Kaplan, "<akaplan at nytimes.com>" Tim Bunce, <http://www.tim.bunce.name> and <http://blog.timbunce.org> Steve Peters, "<steve at
fisharerojo.org>"
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Adam Kaplan and The New York Times Company.
Copyright (C) 2008 by Steve Peters.
Copyright (C) 2008 by Tim Bunce.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2010-06-10 Devel::NYTProf::Apache(3pm)