Sponsored Content
Top Forums Web Development Problems with Apache Virtual Host Post 302884426 by Corona688 on Monday 20th of January 2014 10:28:36 AM
Old 01-20-2014
Does not work.

Does the exact same thing as described above, the exact same way as described above: Sites continue going to /var/www despite the virtualhost telling them to go somewhere else.

I even have the 'NameVirtualHost *:80 has no VirtualHosts' error despite having obvious virtualhosts, just like described above.

Any further thoughts?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache virtual host

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

2. UNIX for Advanced & Expert Users

Resolving Aliases and Virtual IP's on a Host

I am currently going through the servers in our network and trying to compile a list of the current aliases for each box and any virtual IP addresses. I can check for the ones that are supposed to be there but how do I list the ones that I don't even know exist? ANY help would be greatly... (1 Reply)
Discussion started by: Scott Pullen
1 Replies

3. Solaris

Unix virtual host detection

I have a need to write scripts that can reliably determine the virtual host of a Sun Solaris system. (1 Reply)
Discussion started by: Meridian
1 Replies

4. Solaris

Unix virtual host detection

Is it possible to reliably detect the virtual host of a Sun Solaris box, within a shell or Perl script? Can a system have multiple virtual host or not host at all ? I was recently made aware of hostname command, but was not sure if this option was the only one available. Any help is much... (3 Replies)
Discussion started by: Meridian
3 Replies

5. Red Hat

Virtual Host Apache

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

6. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

7. Red Hat

Apache question - virtual host related

Hi folks, I recently read about Apache virtual host and was able to configure that as well. I used name based virtual host (lets say http://vhost1.example.com) and it worked just fine. Then I configured another named based virtual host on same apache server (lets say http://vhost2.example.com)... (2 Replies)
Discussion started by: freebird8z
2 Replies

8. Red Hat

Apache virtual host config vs global config problem

Hi folks, I am trying to configure Apache webserver and also a virtual host inside this webserver. For Global server config: /var/www/html/index.html For virtual host config: /var/www/virtual/index.html Both client10 & www10 are pointing to 192.168.122.10 IP address. BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies

9. Solaris

Solaris 10 virtual - how do I tell physical host?

uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere. How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies

10. UNIX for Advanced & Expert Users

Apache Virtual host issue

Hello, I am facing a very strange issue while setting a virtual host on apache to setup multiple websites using separate IPs. Virtual host is setup but when i am browsing the website it display content under /var/www/html and displaying site1 and site2 folder instead of access the content... (2 Replies)
Discussion started by: sunnysthakur
2 Replies
Weborf(1)						      General Commands Manual							 Weborf(1)

NAME
weborf - Minimal webserver SYNOPSIS
weborf [options] DESCRIPTION
Weborf is a minimal webserver. Also has a limited support for webdav. This manual page documents Weborf's command-line parameters. Weborf is released under the GNU General Public License version 3. OPTIONS
Options: -b, --basedir Must be followed by a valid directory. Weborf will use this directory as root directory, and won't send files located in parent dirs. But it is still possible for server-side scripts to read contents located anywhere on the filesystem. Links are also a work- around to exit from the base directory. -a, --auth Must be followed by a unix socket listened by a program who will handle authentication. See the website for more details. -c, --cgi Must be followed by a list (separated with commas and without spaces) of cgi formats and the binary to execute that format. For example: .php,/usr/bin/php-cgi,.sh,/usr/bin/sh-cgi In /etc/weborf.conf there is a 'cgi' directive, corresponding to this option. It is used when launching weborf as SystemV daemon. -C, --cache Must be followed by a directory that will be used to store cached files. To flush the cache (empty that directory) you must send USR2 signal to the process. It is advised to flush the cache on reboot (manually or with kill) because some items might be invalid after a reboot but weborf would not know that. -T, --inetd Must be specified when using weborf with inetd or xinetd. It will be still necessary to specify the used port, to pass the correct value to the CGI scripts. The -u directive will be ignored. Daemon -d mode should not be used. -t, --tar If used, instead of sending directory listing when requesting a directory, weborf will send a tar.gz file with the content of that directory. It is used mainly to share files and preserving their permissions. -x, --noexec When used, weborf will send scripts as if they were normal files instead of executing them and sending their output. -m, --mime When used, weborf will send the Content-Type header. It is strongli advised to use it when using weborf as production server because some browsers rely on this field. This value will not affect the CGI pages. -i, --ip Must be followed by a valid IP address (v6 or v4, depending on how weborf was compiled. Run weborf -h to know it), and weborf will accept only connections directed to that specific IP. If the IP address provided isn't used by a network device on the host, weborf will terminate. By default weborf listens to all IP addresses on the local host. -p, --port Must be followed by a valid port number (between 1 and 65535), and weborf will listen to incoming connection on the specified port. If the port is already used weborf will terminate. To use low port numbers (less than 1024) it is necessary to execute the process as root. Thus it isn't a good idea to run a webserver with root privileges, so it is possible to specify another user. -V, --virtual Enables weborf to use virtualhosts. The basedir supplied with -b will be the default one (will be used if the requested host is unknown). Every virtualhost must be in the form host[:port]=basedir. The port must be specified if the port used is different than 80. And the basedir must end with a /. To separate many virtualhosts, use a comma, and avoid spaces. To make weborf use different virtualhosts on different ports, it will be necessary to launch many weborf's processes. -I, --index Must be followed by a list (separated with commas and without spaces) of index files. Weborf will try to load an index file follow- ing the order they're listed, and if none is found it will list the content of the directory. In /etc/weborf.conf there is an 'indexes' directive, corresponding to this option. It is used when launching weborf as SystemV daemon. -u Must be followed by a valid uid, different from 0. Weborf will use this user to do his work, but will bind to the network port with the previous user. This mechanism is meant to let users execute it as root and use port 80, and then let it run without root privi- leges. -d Runs weborf as a daemon. It will not terminate when it's father process terminates, and it will leave the shell free to receive com- mands. SCRIPTING
Weborf is able to send dynamically generated pages using php-cgi (if installed). When a filename ends with ".php", weborf will use php to execute this file before sending it to the client. The -c switch will override the default behavior. It is also possible to create scritps or binaries in other languages, just read rfc3875 to know how to handle parameters. RETURN VALUE
0 Normal termination occured after a signal, a daemonization or a print version and exit or so on... 1 Basedir is not a directory 2 Invalid IP address 3 Port already in use 4 Invalid port number 5 Authentication socket doesn't exist or is not a unix socket 6 Too much indexes provided as parameter to -I or to -c. Increasing MAXINDEXCOUNT in the file options.h and recompiling can solve the problem. But providing a reasanable amount of index file names would be a better solution. 7 Unable to allocate memory 9 Unable to change UID 10 Error with cache directory 19 Invalid parameters on command line SIGNALS
SIGUSR1 Prints the internal status of the socket's queue and threads on the standard output SEE ALSO
weborf.conf(5),php(1) VERSION
Weborf0.13 WEB
http://galileo.dmi.unict.it/wiki/weborf/ AUTHORS
Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it> Salvo Rinaldi <salvin@anche.no> Minimal webserver Sep 13, 2009 Weborf(1)
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy