Displaying 20 results from an estimated 297 matches for "documentroot".
2005 Aug 11
6
Need just a little help to start a rails app
I''m very new to Ruby and RoR, have been trying to get it working with no
success. I''m on Ubuntu, installed Rails correctly, run scripts for model,
controller and scaffold no problem, installed fcgi which now appear in apache
header. When I point browser to http://localhost/tada/public/category I get:
Not Found
The requested URL /tada/public/category was not found on this server.
2012 Apr 18
3
The requested URL was not found on this server
Greetings Dear Friends,
I am seeking assistance from Apache experts friends. i recently installed
cacti Graphing Solution.
The main Cacti folder exist under "/var/www/html/cacti" and we all knows
that default DocumentRoot under CentOS is
DocumentRoot "/var/www/html"
Following is Virtual Virtual Host under "conf.d"
Alias /cacti /var/www/html/cacti/
<Directory /var/www/html/cacti/>
DirectoryIndex index.php
Options -Indexes
AllowOverride all
AddType application/x-httpd-php ....
2006 Jun 22
9
Again on Apache 2
...*
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:*>
ServerAdmin giulio@troccoli.it
DocumentRoot /home/webmaster/troccoli.it
ServerName www.troccoli.it
ErrorLog logs/troccoli.it-error_log
CustomLog logs/troccoli.it-access_log common
</VirtualHost>
<VirtualHost *:*>
ServerAdmin giulio@troccoli.it
DocumentRoot /home/webmaster/troccoli.it/spagnolo
ServerName s...
2014 Feb 06
3
Virtual Hosts question
...index forbidden
by Options directive: /var/www/wordpress/" and googling didn't help.
I have my httpd.conf and error.log below.
Thank you, Joe
============== httpd.conf ==============
ServerName 192.168.0.99
NameVirtualHost *:80
<VirtualHost *:80>
ServerName IDoNotExist.com
DocumentRoot /var/www/html
DirectoryIndex Index.html index.html
</VirtualHost>
<VirtualHost *:80>
ServerName X.com
ServerAlias www.X.com
DocumentRoot /var/www/wordpress
DirectoryIndex Index.html index.html index.php Index.php
CustomLog logs/access_log_custom common
</VirtualHost>...
2016 Jun 24
1
haproxy + Apache + virtual hosts -> wrong host is displayed
...ttps if { ssl_fc }
option forwardfor
default_backend apache
backend apache
server domain 127.0.0.1:8080
The /etc/httpd/conf/httpd.conf binds Apache
to port 8080 and serves several Wordpress sites:
Listen 127.0.0.1:8080
ServerName 144.76.184.151
<VirtualHost 127.0.0.1:8080>
DocumentRoot /var/www/html/afarber.de
ServerName afarber.de
ErrorLog logs/afarber.de/error_log
CustomLog logs/afarber.de/access_log common
</VirtualHost>
<VirtualHost 127.0.0.1:8080>
DocumentRoot /var/www/html/ruhrgebietsingle.de
ServerName ruhrgebietsingle.de
ErrorLog logs/...
2008 Apr 24
4
If/else issues.
...set it to the apache default.
My init.pp:
class apache{
if $docroot{
# Set Document Root to the new directory.
line{"$docroot":
file => "/etc/http/conf/httpd.conf",
line => ''DocumentRoot "/var/www/html"'',
ensure => comment,
}
file{"$docroot.conf":
path => "/etc/http/conf.d/DocumentRoot.conf",
content =>''# This file sets the...
2006 Jun 09
2
Virtualhost, Alias & Subdomains
I am having a problem with subdomains, alias & virtual hosts
Centos 4.3, Apache 2.0.52 & PHP 5.04
I can get the primary to work, but not the aliased servers.
http.conf extract
*********
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/html/domain/
ServerAlias www.altdomain.com <http://www.altdomain.com>
</VirtualHost>
<VirtualHost *>
ServerName subdomain.domain.com
DocumentRoot /var/www/html/subdomain/
ServerAlias www.subdomain.altdomain.com
<http://www.subdomain.altdomain.com>
</Virtu...
2007 Feb 01
0
Server migration another documentroot
Hello :) ,
I have an application that has been online for quite some time.
Now the time has come to migrate the application to another server
The problem is that the document root of the new server will be
differtent :
it used to be :
http://domain/:controller/:action ed (so rails is in the documentroot)
new situation :
http://domain/railsdir/:controller/:action (rails dir is a symbolic link
to public
The problem is that the old configuration has been comunicated a lot.
So i want to rewrite the old url requests transparant to the new request
:
http://domain/:controller/:action -->
http://do...
2017 Nov 13
2
Strrange behavior of VirtualHosts in Apache (CentOS6)
...che ...
https://wiki.centos.org/TipsAndTricks/ApacheVhostDefault
the `hostname` gives a different donmain name than what should be hosted ...
e.g. `hostname` is host.example.org and the domain to be hosted is
example.com, so I did this:
<VirtualHost 1.2.3.4:80>
ServerName host.example.org
DocumentRoot /var/www/default
</VirtualHost>
# used to get let's encrypt for the mail server
<VirtualHost 1.2.3.4:80>
ServerName mail.example.org
ServerAlias smtp.example.org
DocumentRoot /var/www/mail
</VirtualHost>
<VirtualHost 1.2.3.4:80>
ServerName www.example.com
DocumentRoot...
2012 Feb 16
3
Baffled by selinux
Apache DocumentRoot on an NFS directory:
[root at localhost ~]# service httpd start
Starting httpd: Warning: DocumentRoot [/home/www/html] does not exist
Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
[root a...
2009 Jun 05
17
passenger on localhost
I installed passenger at home. How should I configure apache to make it
usable?
This was my last guess:
<VirtualHost localhost:3121>
ServerName 127.0.0.1
DocumentRoot /var/www/html/docsearch/public
</VirtualHost>
This gets by "apachectl start" without complaint, but I really haven''t a
clue what I''m doing ;)
Do I need to access it via a different port? Or could I just set up a
link in my /var/www/html/index.html page?
--
Post...
2011 Mar 31
2
multiple vhosts running off of one passenger/rails app
Hi,
I''ve been googling quite a bit - but up until now to no use :(
My problem is how to configure Apache conf (and perhaps Passenger) for
this setup to work:
<VirtualHost *:80>
ServerName oxen.company_A.com
DocumentRoot /var/www/html/oxen/sites/company_A/public
PassengerAppRoot /var/www/html/oxen
SetEnv OXID 23
</VirtualHost>
<VirtualHost *:80>
ServerName oxen.company_B.com
DocumentRoot /var/www/html/oxen/sites/company_B/public
PassengerAppRoot /var/www/html/oxen
SetEnv OXID 25...
2006 Jan 03
2
Apache FCGI and rails image issues help
...o leave them outside the public folder and to access the app
i use localhost/public/app this is the only way i can c the image other
wise its a routin error any ideaS?
Its sounds like a rooting error i agree no prob this is my apache config
as in the vhost
<VirtualHost *>
ServerName rails
DocumentRoot "c:/rails/wine/"
<Directory "c:/rails/wine/public/">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
</Directory>
</VirtualHost>
my app is in a folder C:...
2010 Jan 06
1
Apache DocumentRoot
I just assumed that setting this in the httpd.conf to the expected
/var/www/html and making all my sites actual virtual hosts would
place any request made by ip in /var/www/html, but it goes to the
first vhost?
How can I get the above behavior?
Thanks!
jlc
2006 Oct 12
2
Multiple Instances of Apache on the same IP
...ServerRoot "/etc/httpd"
Listen 10.220.1.156:80 Listen 10.220.1.156:8080
Include conf.d/*.conf Include conf.d/*.conf
User apache User backuppc
Group apache Group backupp
DocumentRoot "/var/www/html" DocumentRoot "/var/www/html"
When I start either apache it works but when I try to start both the second one doesn't start.
Error Message:
When I start config-1 first and then config-2 I get the following error message
Starting httpd: (98)Address alrea...
2011 Oct 27
1
Apache conf.d file for omega?
...via a file in the conf.d directory
rather than a virtual server?
I have been using a virtual server on port 80 but now need to run nagios
on port 80 too and do not want to ask the users to start using a URL
with a non-standard port for omega. KISS.
AFAIK omega gives the user links to files under DocumentRoot. That was
not an issue when using a virtual server which could have its own
DocumentRoot.
For a conf.d file the equivalent would be an Alias directive but
aliasing / would not be sane. Is there any way to tell omega to look
for the files somewhere else?
Here's the attempt at a conf.d file:...
2007 Jan 02
2
problem with mongrel/apache2.2.3 and subdomain setup
...ant config files:
mongrel_cluster.yml:
========================
cwd: /var/www/apps/myapp/current
port: "8000"
environment: production
address: 127.0.0.1
pid_file: log/mongrel.pid
servers: 2
myapp.conf
============================
<VirtualHost *:80>
ServerName myapp.domain.com
DocumentRoot /var/www/apps/myapp/current/public
<Directory /var/www/apps/myapp/current/public>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Configure mongrel_cluster
<Proxy balancer://myapp_cluster>
BalancerMember http:/...
2006 Apr 14
3
Rails deployment
Hi all,
I''ve greated a rails application and i want to deploy it right now.
I have to use a windows 2003 server.. So i installed
i''ve used the following tutorial:
http://wiki.rubyonrails.com/rails/pages/RailsOnWindows
My application is running at : http://loc.iwsweb.nl
But everytime i connect it opens a ruby process but at the end it won''t
kill it.
As you can see
2005 May 10
1
Some Rails-Lighttpd questions
...(
"socket" => "/tmp/rails.socket",
"bin-path" =>
"/home/bougyman/www/bougyhome/public/dispatch.fcgi"
)
)
Related: this does not affect my documentroot does it? I want to have
hosting for several users so I''d rather not set my documentroot to /
or /home of course!
What is the meaning of the socket parameter? According to the documentation
it is "path to the unix-domain socket" but who creates that socket? Rails
or FastCGI?
Curre...
2010 Nov 16
4
easy httpd's problem
...he any direcotry and file that exist after the CentOS installation complete.
This is my directory 's detail information:
drwxr-xr-x root www-data root:object_r:default_t CenterRepo
and my httpd's configuration information:
<VirtualHost *:80>
ServerAdmin gitserver
DocumentRoot /
<Directory />
Options Indexes FollowSymLinks includes
order allow,deny
AllowOverride None
allow from all
</Directory>
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example....