Sponsored Content
Top Forums Web Development why do apache redirect me to the same path ? Post 302319421 by otheus on Monday 25th of May 2009 07:26:07 AM
Old 05-25-2009
Quote:
Is it possible to specify a file instead of a directory in DocumentRoot ?
No.

You can, however, say something like:
Code:
<VirtualHost www.patrick.dev:80>
ServerAdmin patrick.diviacco@gmail.com
DocumentRoot "/Users/aneuryzma/Sites/"
DirectoryIndex phpinfo.php
ServerName www.patrick.dev
ErrorLog "/private/var/log/apache2/drupalpatrick.dev-error_log"
</VirtualHost>

 

10 More Discussions You Might Find Interesting

1. HP-UX

Apache Redirect Transparently

I have two servers running apache server, namely server A and B. All users access server A, but for some application, I would like to redirect the request to server B. I have set apache redirect in server A apache config file. Redirect /application http://serverB/application Now, the flow... (2 Replies)
Discussion started by: alfredo
2 Replies

2. Cybersecurity

APACHE rewrite / redirect URL

Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...? Thank you for your help. (1 Reply)
Discussion started by: ampo
1 Replies

3. Web Development

APACHE rewrite / redirect URL

Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...? Thank you for your... (2 Replies)
Discussion started by: ampo
2 Replies

4. Web Development

Apache vhost redirect to a cgi file

Hi guys, I've been trying to figure this out all day however havent managed to as of yet. I have a server called netmon (network monitoring) which runs a multitude of programs to monitor the network. I also have a cname pointing to netmon called smokeping. At the moment to access smokeping... (0 Replies)
Discussion started by: JayC89
0 Replies

5. Web Development

Redirect to diff port on apache

Hi, I'm running both mail (webmail port = 8080) and web (http = 80) on same box. i am able to redirect as below without any problem. From: http://mail.abc.com To: http://www.abc.com:8080 I did the above with a simple virtualhost and redirect directive. But my requirement is to have same... (1 Reply)
Discussion started by: reddyr
1 Replies

6. Web Development

redirect http to https in apache

i read thru a few article how to do it, but i could not get it to work the way i want it. vi ../httpd.conf Redirect permanent /dev https://servername/portal/ when i type servername, works fine. my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies

7. Shell Programming and Scripting

Apache redirect file exceptions

Hi, I am currently redirecting all mobile devices to my mobile site in apache. I need to exempt the following file types from redirecting even if the request is made from a mobile device. *.css *.jpg *.jpeg *.gif *.js Does anyone know where and what I need to do for this? Thanks in... (1 Reply)
Discussion started by: kmaq7621
1 Replies

8. Web Development

Apache Redirect

Hi All, I have my URL as http://mysite.com/shop/maternity/tops_30116 Now I want to append "?No=0&Nrpp=100" and then redirect to http://mysite.com/shop/maternity/tops_30116?No=0&Nrpp=100 This is for many URL which have "maternity" inside them. Can there be a single Redirect... (0 Replies)
Discussion started by: ankur328
0 Replies

9. Web Development

How to redirect URLs in Apache?

I am a total newbie to Apache. I need to do this only for this weekend during an upgrade from old system to new system We have different URLs http://domain.name/xxx (xxx varies to any length and words - it can be /home, /login, /home/daily, /daily/report, etc). How do i redirect all those to... (0 Replies)
Discussion started by: GosarJunk
0 Replies

10. Web Development

Apache rewrite/redirect parameters explanation

hi what is the meaning of the below code, please explain in details RewriteRule '^/(.*)$1$2/?' (1 Reply)
Discussion started by: raghur77
1 Replies
cups-files.conf(5)						    Apple Inc.							cups-files.conf(5)

NAME
cups-files.conf - file and directory configuration file for cups DESCRIPTION
The cups-file.conf file configures the files and directories used by the CUPS scheduler, cupsd(8). It is normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character. DIRECTIVES
The following directives are understood by cupsd(8). Consult the on-line help for detailed descriptions: AccessLog filename AccessLog syslog Defines the access log filename. ConfigFilePerm mode Specifies the permissions for all configuration files that the scheduler writes. DataDir path Specified the directory where data files can be found. DocumentRoot directory Specifies the root directory for the internal web server documents. ErrorLog filename ErrorLog syslog Specifies the error log filename. FatalErrors none FatalErrors all -kind [... -kind] FatalErrors kind [... kind] Specifies which errors are fatal, causing the scheduler to exit. "Kind" is "browse", "config", "listen", "log", or "permissions". FileDevice Yes FileDevice No Specifies whether the file pseudo-device can be used for new printer queues. FontPath directory[:directory:...] Specifies the search path for fonts. Group group-name-or-number Specifies the group name or ID that will be used when executing external programs. LogFilePerm mode Specifies the permissions for all log files that the scheduler writes. PageLog filename PageLog syslog Specifies the page log filename. Printcap Printcap filename Specifies the filename for a printcap file that is updated automatically with a list of available printers (needed for legacy applica- tions); specifying Printcap with no filename disables printcap generation. RemoteRoot user-name Specifies the username that is associated with unauthenticated root accesses. RequestRoot directory Specifies the directory to store print jobs and other HTTP request data. ServerBin directory Specifies the directory where backends, CGIs, daemons, and filters may be found. ServerCertificate filename Specifies the encryption certificate to use. ServerKey filename Specifies the encryption key to use. ServerRoot directory Specifies the directory where the server configuration files can be found. SystemGroup group-name [group-name ...] Specifies the group(s) to use for System class authentication. TempDir directory Specifies the directory where temporary files are stored. User user-name Specifies the user name or ID that is used when running external programs. SEE ALSO
classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), http://localhost:631/help COPYRIGHT
Copyright 2007-2012 by Apple Inc. 19 November 2012 CUPS cups-files.conf(5)
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy