anyone fairly experienced with Apache??? Document Root Fiddling?
Quote:
Originally Posted by glen.barber
This doesn't answer your 'My Solution' question, but I do something similar on a development machine. I use subversion to checkout from my code repository into /home/me/svn/site and create a symbolic link for apache to this location:
I actually considered using a link. I don't know why, but I just assumed that apache wouldn't play well with a link.
Quote:
Originally Posted by glen.barber
I know it doesn't answer your real question, but maybe this solution is easier. *shrug*
Well, this could be a work around. The only problem/reason its a work around and not a solution is because I actually have 24 GB of data inside my development folders on a couple computers. such a large development folder brings about two problems here:
my dropbox account doesn't have that much of storage (nor would I want it syncing that stuff anyway)
whenever running my login's "switch-server's-location" script, it would have to move the 24 GB of stuff out of /var/www just for the link to work.
I'll probably use link to redirect Apache just on a computer or two right now, but I'll still be searching for a more thorough solution. Thanks again, glen.barber, I appreciate the input.
Perhaps someone with a better understanding of Apache than me could explain to me "Apache's http root isn't meant to be fiddled with"? and such an undertaking isn't for the inexperienced?
Currently our Apache log files are huge, I want to put say a month's time limit on this, then when it hits the end of the month I would like it to start over writing.
Does anyone know where the config file is for this and what its called? I also want to do exactly the same on wtmp config (who... (1 Reply)
Hi, I need a script that will:
1. Go through about 20 different folders, each containing about 20 1d files. The 1d files go something like this:
22.253 37.707 78.117 112.374 127.944 156.067 180.956 233.785 249.256 ... (1 Reply)
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Hello dear users, here I have a script to manipulate .csv files that are like this originally:
And I need to make a script to delete certain fields. Each field is separated with a comma.
So, here is my script (at least a part of it):
Field $1 is composed of a name, and then a... (5 Replies)
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)
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
I am trying to automate editing of a json file using bash script.
The file I initially receive is
{
"appMap": {
"URL1": {
"name": "a"
},
"URL2": {
"name": "b"
},
"URL3": {
"name": "c"
},
}
WHat I would like to do is replace... (5 Replies)
I just want to make sure I am understanding how to pass a config file to a bash script . In the below I pass to arguments to a script, then define them in the script as id and config. I then source config using ., if I understand correctly the variables in the config file can now be used by the... (11 Replies)
Discussion started by: cmccabe
11 Replies
LEARN ABOUT DEBIAN
net::dropbox::api
Net::Dropbox::API(3pm) User Contributed Perl Documentation Net::Dropbox::API(3pm)NAME
Net::Dropbox::API - A dropbox API interface
VERSION
Version 1.8.8.8
SYNOPSIS
The Dropbox API is a OAuth based API. I try to abstract as much away as possible so you should not need to know too much about it. This is
how it works:
use Net::Dropbox::API;
my $box = Net::Dropbox::API->new({key => 'KEY', secret => 'SECRET'});
my $login_link = $box->login; # user needs to click this link and login
$box->auth; # oauth keys get exchanged
my $info = $box->account_info; # and here we have our account info
See the examples for a working Mojolicious web client using the Dropbox API.
You can find Dropbox's API documentation at <https://www.dropbox.com/developers/web_docs>
FUNCTIONS
login
This sets up the initial OAuth handshake and returns the login URL. This URL has to be clicked by the user and the user then has to accept
the application in dropbox.
Dropbox then redirects back to the callback URL defined with "$self->callback_url". If the user already accepted the application the
redirect may happen without the user actually clicking anywhere.
auth
The auth method changes the initial request token into access token that we need for subsequent access to the API. This method only has to
be called once after login.
account_info
account_info polls the users info from dropbox.
list
lists all files in the path defined:
$data = $box->list(); # top-level
$data = $box->list( "/Photos" ); # folder
The data returned is a ref to a hash containing various fields returned by Dropbox, including a "hash" value, which can be used later to
check if Dropbox data beneath a specified folder has changed since the last call.
For this, "list()" accepts an optional 'hash' argument:
$data = $box->list({ hash => "ce9ccbfb8f255f234c93adcfef33b5a6" },
"/Photos");
This will either return
{ http_response_code => 304 }
in which case nothing has changed since the last call, or
{ http_response_code => 200,
# ... various other fields
}
if there were modifications.
copy
copies a folder
copy($from, $to)
move
move a folder
move($from, $to)
mkdir
creates a folder
mkdir($path)
delete
delete a folder
delete($path)
view
creates a cookie protected link for the user to look at.
view($path)
metadata
creates a cookie protected link for the user to look at.
metadata($path)
putfile
uploads a file to dropbox
getfile
get a file from dropbox
debug
Set this to a non-false value in order to print some debugging information to STDOUT.
debug(1)INTERNAL API
_talk
_talk handles the access to the restricted resources. You should normally not need to access this directly.
nonce
Generate a different nonce for every request.
AUTHOR
Lenz Gschwendtner, "<norbu09 at cpan.org>"
With Bug fixes from:
Greg Knauss "gknauss at eod.com"
Chris Prather "chris at prather.org"
Shinichiro Aska
[ktdreyer]
SureVoIP <http://www.surevoip.co.uk>
BUGS
Please report any bugs through the web interface at https://github.com/norbu09/Net--Dropbox/issues
<https://github.com/norbu09/Net--Dropbox/issues>. I will be notified, and then you'll automatically be notified of progress on your bug as
I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Dropbox::API
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-Dropbox-API <http://annocpan.org/dist/Net-Dropbox-API>
o CPAN Ratings
http://cpanratings.perl.org/d/Net-Dropbox-API <http://cpanratings.perl.org/d/Net-Dropbox-API>
o Search CPAN
http://search.cpan.org/dist/Net-Dropbox-API/ <http://search.cpan.org/dist/Net-Dropbox-API/>
COPYRIGHT & LICENSE
Copyright 2010 Lenz Gschwendtner.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2012-03-22 Net::Dropbox::API(3pm)