10 More Discussions You Might Find Interesting
1. Red Hat
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)
Discussion started by: GlideK
0 Replies
2. Red Hat
Hi,
I have set up the following virtual host but it cannot find the URL?
Apache is running fine and I have disabled iptables. Within the document root I have the following file index.html displaying a sample text message.
Any ideas what my problem might be?
httpd.conf:
... (2 Replies)
Discussion started by: Duffs22
2 Replies
3. Web Development
Hi All,
i'am facing a problem with urls that don't have a filestructure under DocumentRoot.
A URL like http://mydomain.com/applicationrew/Structure1/Structure2/some?parameter=key¶meter1=key1
Should be rewritet to something else.
Now i defined a Location like
<Location ~... (3 Replies)
Discussion started by: wuschelz
3 Replies
4. UNIX for Dummies Questions & Answers
Is there a directive to limit the number of virtual hosts allowed per apache instance? I am told yes but I cannot find it. (1 Reply)
Discussion started by: mojoman
1 Replies
5. Programming
Hello guys,
I have just started building a high-available site using ubuntu server 9.10. I am using moodle. The thing is that i want to write an application using curses, to show the status of the apache servers, mysql servers and the nfs server. I can check the mysql from the c api, but how can... (1 Reply)
Discussion started by: pegasus001
1 Replies
6. Linux
ok guys,
Im running Centos 4.6 Final
latest versions of apache, mysql etc etc
Basically, I have several websites on there and one of them is a busy forum and it generates big log files in not that long of a timeperiod.
I set it up about 8 months ago so that logrotate was rotating the logs... (7 Replies)
Discussion started by: anderow
7 Replies
7. UNIX for Advanced & Expert Users
Hi,
This is more of a verification rather than a question of technical nature.
This is based on solaris 10 machine
Could we use Virtual hosts (within our hosts file):
123.1.1.10 virtual_host_name
123.1.1.10 host_A
(note: 123.1.1.10 - host_A is also in our DNS server entry)
And... (0 Replies)
Discussion started by: jackola
0 Replies
8. UNIX for Dummies Questions & Answers
Hi!
Im trying to use host.allow & host.deny to resrtic access to my sun machine, but it doesnt seem to work... I want to allow full access from certain IPīs (ssh,http,ftp,etc...) but deny all kind of conections from outsideworld, the way that im doing that is:
hosts.allow
ALL:127.0.0.1... (2 Replies)
Discussion started by: Sorrento
2 Replies
9. UNIX for Advanced & Expert Users
Hey all,
I'm having some apache problems. I've installed apache countless times on FreeBSD. However, I'm having some problems and I could use some help. Here is my system info:
FreeBSD 5.2.1
Apache 2.0.51 (/usr/local/apache2), doc root (/www symlink to /var/www)
PHP 5.0.1 (/usr/local/php)... (2 Replies)
Discussion started by: ezekiel61
2 Replies
10. UNIX for Dummies Questions & Answers
Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic?
< VirtualHost 129.250.242.126>
ServerName www.my_domain.com
ServerAdmin admin@my_domain.com... (4 Replies)
Discussion started by: 98_1LE
4 Replies
VIRTUAL(3) 1 VIRTUAL(3)
virtual - Perform an Apache sub-request
SYNOPSIS
bool virtual (string $filename)
DESCRIPTION
virtual(3) is an Apache-specific function which is similar to <!--#include virtual...--> in mod_include. It performs an Apache sub-request.
It is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache. Note that for a CGI script,
the script must generate valid CGI headers. At the minimum that means it must generate a Content-Type header.
To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too.
This function is supported when PHP is installed as an Apache module or by the NSAPI server module in Netscape/iPlanet/SunONE webservers.
PARAMETERS
o $filename
- The file that the virtual command will be performed on.
RETURN VALUES
Performs the virtual command on success, or returns FALSE on failure.
EXAMPLES
See apache_note(3) for an example.
NOTES
Warning
The query string can be passed to the included file but $_GET is copied from the parent script and only $_SERVER['QUERY_STRING'] is
filled with the passed query string. The query string may only be passed when using Apache 2. The requested file will not be listed
in the Apache access log.
Note
Environment variables set in the requested file are not visible to the calling script.
Note
This function may be used on PHP files. However, it is typically better to use include(3) or require(3) for PHP files.
SEE ALSO
apache_note(3).
PHP Documentation Group VIRTUAL(3)