[SOLVED] need seamless dir structure / alias for 2 servers

/htdocs is my doc root on my local testing server,
but on my file structure on my development machine i like to try to mimic my remote host as close as possible to keep files easily cross-compatible.
correct me if im wrong but most apache hosts that are user based are set up in a way that the user directory is the ftp server root (/home/user/), and the /home/user/public_html is the doc root as accessed through DNS.  Is it even possible to expect that my testing server can mimic this behaviour without using the ~user/public_html settings without creating chaos?
i was wondering if an alias for the htdocs somehow would work so that when i ftp across the lan, it smylinks the htdocs/ directory as if it were the public_html/
this way the folllowing will look like this
remote server dirs; (the way it is set up now, and is perfect, no edits needed)
root/sensitive_website_includes/
root/public_html/website1/
root/public_html/website2/
local testing server dirs;
root/sensitive_website_includes/
root/htdocs/website1/
root/htdocs/website2/
Last edited by wolfdogg (2011-06-03 21:38:44)

ok, i have come to the conclusion that i probably need keep using the public_html directory on my testing server even though its cumbersome because it seems to me that the /htdocs on my testing is equivalent to the /~user on the remote.  therefore,  if the /~user must contain a public_html dir then so must the /htdocs.  Also, on the remote ill just keep my sensitive includes inside the public_html, but above the website folders (above where the domain names point).
/htdocs/public_html/sensitive includes
/htdocs/public_html/website1
/htdocs/public_html/website1/apps
/htdocs/public_html/website1/forum
/htdocs/public_html/website2   etc..
note;
on the testing server -  /htdocs is the real public directory, as accessed through the lan
host root url = http://localhost/ (top most accessible location for a user via a url, and is above the website folders)
website1 url without a vhost = http://localhost/public_html/website1 (pain in the arse)
website1 url after vhost = lh.website1.com
on the remote server - /~user is the real public directory if accessed through the servers "actual" dns such as this
host root  url = http://serversdomainname/~user(top most accessible location for a user via a url, and is above the website folders)
website1 url = http://serversdomainname/~user/public_html/website1 (actual location for website)
website1 url = http://website1.com (after trying in domain name)
(note i have convinced my paid hosting company to take my primary website that the hosting account is attached to, and replace it with a fictitious one, so that all this could be accomplished, this way there isnt a domain name other than the servers that can access the public_html directory at all, this adds a good layer of security.  now all the websites are on an equal par, in subdirs)
so in the end the testing does mimic my linux remote server(paid hosting)
it would still nice to be referred to the correct documentation to mask a directory like mentioned, i guess its sort of a reverse alias if anybody is familiar with this.  and is there anybody else here that has done this sort of thing?
Last edited by wolfdogg (2011-06-03 22:00:53)

Similar Messages

  • Alias for field in inner join query

    In my Oracle 9i Schema, I have two tables:TableOne
    pocOne    pocTwo
    2           3
    2           4
    1           2
    TableTwo
    TableTwoId   Name
    1            Jones
    2            Smith
    3            Edwards
    4            CamdenMy SQL that works to fetch all records with Smith works great:select Name from TableTwo
    Inner Join TableOne
    on TableTwo.TableTwoId in (TableOne.pocOne, TableOne.pocTwo)
    where Name = 'Smith' Now I need to create an alias for the Name field. Here is my attempt:select myAliasName from TableTwo
    Inner Join TableOne
    on TableTwo.TableTwoId in (TableOne.pocOne, TableOne.pocTwo), (select Name as myAliasName from TableTwo)
    where myAliasName = 'Smith' This attempt pulls up all the records instead of just Smith records. Please advise how I can create an alias for the Name field in my above query?

    Are you just looking for
    select Name AS AliasName
       from TableTwo Inner Join TableOne
              on TableTwo.TableTwoId in (TableOne.pocOne, TableOne.pocTwo)
    where Name = 'Smith' Justin

  • I need to extend the schema for iPlanet Dir. 5.0 and add custom objectclasses and atributes. I do this by adding entries in the 99user.ldif file. Its not working. Any ideas?

    Hi
    I need to extend the schema for iPlanet Dir. 5.0 and I do not want to do so from the console. As per the documentation, I need to either add entries in the 99user.ldif file or define my own custom [00-99]myname.ldif file. I tried this but its not working.
    I have made the assumption that there is no explicit import step for the 'user defined' schema files (as it is for user data ldif files). I assume that on start (or on opening the console), I'd be able to see the new schema after the server has read the schema file.
    I have verified that entering new objectclasses and attributes from the console adds entries into the 99user.ldif file. So why is the reverse process not working. Can anybody throw some light on this? Also in case my assumptions are faulty, please let me know.
    I did not change the aci entries in the existing ldif file. Is any modification needed there? I was logged in as the Directory Manager during this testing process.
    regards
    Sikka ([email protected])

    Hi Sikka,
    The server reads its schema configuration on startup. If you manually modify the schema files while the server is running, it will not have any effect. You have to restart the server.
    The console adds the new schema elements over LDAP (you could do that as well, you only have to modify the cn=schema entry), so the server is aware of the changes immediately and thus restarting is not needed.
    I hope this helps.
    Bertold

  • Why do u need a custom structure for creating a custom bapi

    Hi ,
    why do u need a custom structure for creating a custom bapi.

    Hi,
        Once any Bapi realeased the structures it is using freezed to this bapi, the structure becomes specific to this Bapi, we can not make any changes over there. That is why we need custom structure for creating a custom bapi.

  • Need Help with Zen for Servers 7.0 Inventory & Policies

    I have Zen 7.0 for Servers installed on NW 6.5 box. I have installed the
    Inventory agents on another 6.5 box. The Inventory database indicates it
    is empty. I am not sure where to begin to troubleshoot this. I am sure
    I am missing something.....but what....is the question.
    Are there any documents out there that lists steps to troubleshoot this?
    I also get a message on the server with the Inv database that the
    dictionary files are setup to be updated by itself. How do I keep that
    message from happening. I thought I needed to place the ip address of
    the server that will be providing dictionary updates in the field which
    is what I did but, it causes the above message.
    Thanks in advance,
    TJ

    Thanks for the reply Steve. I will give it a try.
    > OK, i can help..i think. I've just set up ZFS. Monitoring bit was
    pretty
    > easy and straight forward. Inventory on the other hand was a real pain
    in
    > the arse until i cracked it.
    >
    > 1. Don't worry about the dictionary error. The only way to stop this is
    to
    > have a separate policy for the Inv server and don't enable the
    dictionary
    > update.
    >
    > 2. ***Most important piece*** It doesn't really state it in the docs,
    but i
    > kept seeing it in posts. The key to getting inventory working is to get
    TED
    > working first. Once you have TED working then it all falls into place.
    >
    > 3. I'm not sure if this is important but i read somewhere in a TID that
    the
    > ZFS Service Location Package (a policy obj) should reside in the same
    OU as
    > the ZFS server.
    >
    > 4. I had manually created a TED distribution and channel which didn't
    seem
    > to work but when i created one using the wizard it all started
    > working...strange. Given this, i have now created a distribution and
    channel
    > that pushes a single file (which i called zfsinitial.txt) out to all
    > subscribers. This basically activates everything, copies all the
    required
    > certifcates around etc, etc
    >
    > 5. As well as this initialisation distribution i have my policy
    > distribution\channel that has all the Inventory settings in it
    (location,
    > schedule etc). I have assigned both of these to a subscriber group.
    >
    > once i got all this working, the subscribers and inv agents started
    sending
    > stuff to the Inv DB and the Distributor. The database is then
    > populated...viola
    >
    > <[email protected]> wrote in message
    > news:[email protected]...
    > >I have Zen 7.0 for Servers installed on NW 6.5 box. I have installed
    the
    > > Inventory agents on another 6.5 box. The Inventory database
    indicates it
    > > is empty. I am not sure where to begin to troubleshoot this. I am
    sure
    > > I am missing something.....but what....is the question.
    > >
    > > Are there any documents out there that lists steps to troubleshoot
    this?
    > >
    > > I also get a message on the server with the Inv database that the
    > > dictionary files are setup to be updated by itself. How do I keep
    that
    > > message from happening. I thought I needed to place the ip address of
    > > the server that will be providing dictionary updates in the field
    which
    > > is what I did but, it causes the above message.
    > >
    > > Thanks in advance,
    > > TJ
    >
    >

  • (solved)-Windows update cannot currently check for updates, because the service is not running. You may need to restart your computer

    (solved)-Windows update cannot currently check for updates, because the service is not running. You may need to restart your computer
    Hetti Arachchige V Aravinda | Network Administrator (B.Sc, MCP, MCTS, MCSA, MCSE, MCITP, CCNA, CEH, MBCS)| http://www.windowstechinfo.com |

    Hi,
    Glad to see your problem resolved, Hope your experience is helpful with others.
    Roger Lu
    TechNet Community Support

  • Can't use Bangla font in anti-alias "anti-alias for animation"....help needed!

    Hi, the problem I am having with adobe flash pro cs6 is that I am trying to use Bangla font in flash. Although the font shows up but in anti-alias "anti-alias for animation" mode, the fonts become all scattered and disordered. But when I switch to "use device font", the work okay. But in using device font, I cant really use the subscript or superscript button. So then again I have to switch back to "anti-alias for animation". I am getting sick of it. Is there any way around it?
    I have added an image for you to understand my query ............
    Someone else "deval mistry" posted the same problem on Mangal font here.... https://forums.adobe.com/thread/1697054
    deval mistry

    I found an solution.
    Uninstalling AirParrot as well as the two offending AirParrotDriver.kext and APExtFramebuffer.kext files in System>Library>Extensions was the fix. All problems disappeared.

  • Need to create subroutine pool for info structure

    Hi gurus,
    I need to create a subroutine pool for the info strucuture S891for one of the key figures.(in the extended update rules). and in that i need to write 3 routines for the 3 key figures.
    plz help me how to create the subroutine pool for this.
    I just went to se38 and choose type subroutine pool and created a prg. But do not know how to proceed further.
    Any idea on this?
    Regards,
    Sakthi.
    Edited by: sakthi sri on Sep 6, 2010 9:47 AM

    Hi,
    Please Check this link,
    http://help.sap.com/saphelp_nw70/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm
    How to create variant for csutom screen
    New transaction - require variant selection to be disabled
    This may help you.
    Regards,
    Renuka.

  • [SOLVED] Terminator, "you need to install python bindings for libvte"

    Upgrade terminator to 0.96-3, with new dependency to vte3.
    It suggested to remove vte, which is not needed any more. So I followed the suggestion.
    Then I can't open terminator! Got a error dialog "You need to install python bindings for libvte".
    Finally, I installed the vte package to fix it.

    Indeed, vte is still required.

  • Need help with document that turned into alias for Application

    I'm trying to help my dad with a problem, not sure exactly what he did, but he had a page document in a documents folder on his desktop.  He moved it into a *files folder* on his desktop.  Somehow the document seems to have been turned into an alias for for his application folder. When I click on the file name, the document doesn't open, it opens up the Application folder.
    I'm VERY new to Mac. 
    Any help would be appreciated.  Thank you.

    This should answer the question:
    http://support.apple.com/kb/TA26514

  • Bug-fix needs your vote: queries w/ joins against SQLite return incorrect values because Adobe treats PK col as alias for rowid when it should not

    For someone new to Adobe the forums and products can be bewildering. I've been advised to repost something I posted in Flash Data Integration in this forum.
    Here is the link to the post I put there:
    http://forums.adobe.com/message/2363777#2363777
    I have reported this bug: http://bugs.adobe.com/jira/browse/FB-23750
    I gather bugs get fixed if people vote for them to be fixed. Please vote for it to be fixed. It is serious, and you might not even realize you're suffering from it because the incorrect values returned by the query will seem perfectly plausible.
    If the link above doesn't work, here it is again:
    When I execute the following query in Flex and/or Lita:
    select wrdid, uspelling from WRD WHERE uspelling = 'wingeard'
    the results are:
    uspelling...wrdid
    wingeard   3137
    Look at what comes back when I execute this query using .NET provider by  Robert Simpson for SQLite and SQLite Manager by Mrinal Kant:
    SELECT     rowid, wrdid, uspelling
    FROM         WRD
    WHERE     (uspelling = 'wingeard')
    rowid.......wrdid...........uspelling
    3137........3042............wingeard
    No wonder none of my queries with joins is working correctly in Flex.
    wrdid is defined as "int" not INTEGER.
    http://www.sqlite.org/lang_createtable.html (see INTEGER PRIMARY KEY section):
    "The special behavior of INTEGER PRIMARY KEY is only available if the type name is exactly "INTEGER" (in any mixture of upper and lower case.)  Other integer type names like "INT" or "BIGINT" or "SHORT INTEGER" or "UNSIGNED INTEGER" causes the primary key column to behave as an ordinary table column with integer affinity and a unique index, not as an alias for the rowid."  [emphasis added]
    Now, I happen to think the SQLite developers made a mistake here in failing to follow standards, preferring not to break legacy code. They'd rather break current code instead???  I would not characterize this as a "corner case" and the bug-at-hand is de facto evidence of that.

    Did you try running the queries I posted? What were your results with those?
    What I am seeing is that when I use "int PRIMARY KEY" in a CREATE TABLE statement, that column becomes the special "rowid" column. I believe this is also what you are seeing.
    However, what confuses me is how you're getting a table with three columns "rowid", "id", and "name" in the first place. When I run this SQL...
    CREATE TABLE test
    id int PRIMARY KEY,
    name String
    ...I get a table with two columns: a normal column named "name", and a special primary key column named "id", which for this table is identical to the column represented by the rowid identifier.
    However, if I understand correctly, your table has three columns, "id", "name", and the special primary key column (i.e. "rowid"). Is that right? Can you give me the SQL that was used to create the table, or tell me how the table was created (e.g. if you used a tool like Lita) so I can try to re-create your exact situation? That would really be very very helpful -- it was the only detail that was missing in your last post, so I had to guess on that one detail.
    I tried something else to re-create your situation. I ran the following statement:
    CREATE TABLE test
    id int
    name String
    That gave me a table with two real columns plus the rowid column. Then I ran the three insert statements on that table, and when I ran the select statement I got the expected result:
    id     name
    1     one
    2     two
    7     seven
    Again, I'm guessing that your table was created differently than my test table, and that's the explanation for the difference.
    Some other possibilities to consider:
    The screen shot doesn't show a SQLResult object, so it seems that you're using some wrapper library or code to execute the query, or at least that you've copied the SQLResult.data Array to another variable named results. Although it seems less likely to me, it's possible that somewhere in that code something is getting scrambled. (But I'd rather rule out AIR as the underlying cause first before attempting to explore those paths.)
    As a side note, if you really want the database to have three columns (the special rowid column and your two columns id and name), and you don't want id to be the special rowid column, then it sounds to me like you don't actually want to define id as the primary key. If you just want the id column to have a constraint that prevents duplicate values, you can define it as a UNIQUE column:
    CREATE TABLE test
    id int UNIQUE,
    name String
    That gives you the same database-enforced constraint of not allowing duplicate values, but it tells the database explicitly that id isn't the same thing as the rowid primary key. (You can still join another table to the id column even if it's not defined as the primary key.)
    P.S. I'm sure you don't mean it this way, but using gigantic red text comes across like shouting -- it's very "loud". I'm trying my best to understand the issue you're having and help you resolve it, and using multiple colors and font sizes doesn't really make your post any more or less clear. Just because I ask you questions, or say that I'm seeing different results than you, doesn't mean I don't believe that you're seeing the results you're seeing. I've definitely seen strange variations and cases where something happens on my computer but others can't duplicate it on their computers -- so I believe that you are getting the results you're getting. I'm just trying to figure out how to make it so that I can also get those results, so that I can pass that on to the engineers who are in a position to make changes.

  • Solved WiFi issue - Hope it works for you. If not, sorry.

    Hey, I know about your problem. I've been a Windows person for fifteen years and bought a MacBook Pro about eight hours ago and same problem. Been researching it for eight hours and got it to work. I don't know much, but you can try this and maybe it'll work. Plug your notebook into a cable ethernet connection (automatically connects and then go to network preferences (right by the battery indicator). Surf the web and just make sure you are actually connected via cable. If so, click ethernet in network preferences and then click advanced. You should see a bunch of taps, but click DNS and then you should see two sets of DNS servers. Write them down. Click okay and then disconnect cable (replug if you don't have an extra line). Clicka airport and then settings and then DNS servers. Add the two sets of numbers you just saw and then click apply. Enable your AirPort and now it should work. Hope this works. If it does, email me back at <edited by host - for your privacy please do not put email addresses in the body of posts.> Hopefully this solves all the wifi problems.

    Thanks for posting Marcus. This may help, but I've noticed many cable providers do not provide the DNS addresses by default.
    We had had three different cable providers at home over the past eight years and none "fed" DNS info automatically. One of those providers would give you the numbers if you called about a problem but otherwise felt it to be unnecessary for the masses to have them.
    The LAN/WAN sysops where I worked also had to dole out DNS numbers manually. We were spread across three facilities up to six miles apart and some of the remote locations needed DNS entered for best performance. Still, we had to call someone to get them.
    So, yes, it can help--no, many people cannot get these numbers without calling their ISP. Even then, they may not get them depending on the support tech who picks up the phone that day. It will vary by ISP.
    Keep up the experimenting as it benefits the whole community. If someone has to make a support call to try your DNS solution, so be it. It might be well worth the call. You theory certainly fits with DNS info I got from my sysops when I was working; they manually entered DNS addresses for physical locations that had trouble maintain server contact.
    Oops! Almost forgot--welcome to Apple Discussions!
    Allan

  • No organisational structure maintained for this item

    I am trying to create a shopping cart in SRM 4.0 front end and i keep getting the error no organisational structure maintained for this item. the purchasing group is not being picked up.I will greatly appreciate your help in solving this issue.
    thank you

    Hi Guys,
    Well... I think I have found the cause of the problem.  But I dont know how to solve it.
    In my Org Model, "Extended Attributes" tab, "Product Categories" option selected.  In that place I need to assign my Backend as the Src. System, and then choose my Product Category.     
    The problem is that I dont have any category linked to my backend system.    Because If I choose my SRM as the Src. System, I can see all the product categories that I have created.
    Somebody knows how can I link my Product Categories to my backend?   
    pd: my current categories were created manually in srm (not imported from r3)
    THANKS FOR YOUR HELP GUYS !!!!!!
    Regards,
    Diego

  • I need step-by-step procedure for ESS/MSS Security??

    Hi, I need step by step procedure for ESS/MSS security. I know the Structural .Authorization , but i dont know how this ESS/MSS security is. Could you please help me with any step by step notes of your personal. Please i dont want any best practices from help.sap.com. I already gone through those links, but i didnt get how to maintain security for ESS/MSS.

    Hi @mehdijon 
    I can help. There is no full feature software and driver available from HP, but the OS X v10.9 Mavericks driver for your printer is available through Apple Software Update (ASU).
    With this driver you can still print and scan, you just wont have HP software to scan from. Scanning to the computer from the printer control panel is only available when using HP Scan software, thus it will not work because there is no HP scan software as apart of the Apple Software Update driver.
    Instead, you can scan using,
    Method one: Scan from the Print & Scan window   
    Method two: Scan from Apple Preview
    Method three: Scan from Apple Image Capture 
    I hope this helps. If you have any additional questions are have any difficulty using any of these methods, please let me know what method you are trying and what the issue/error is. You may also find the following document helpful; OS X v10.9 Mavericks: Installing and Using the Printer on a Mac
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Commons net and retrieve complete dir structure

    Hi everybody,
    I'm using commons net from apache to connect and download files from a FTP site.
    I have a question: is there any easy (and quick above all...) function to get the complete directory structure of FTP site without using recursively the listFiles() method, which takes a LOT of time?
    I only need to syncronize a local dir structure to the FTP one. I don't need to download any file. Many thanks for your help.

    1) I like to retrieve ftp files only with some
    extensions like *.txt or *.jpg etc. How can we
    retrieve files with specifying file extension?
    List the files and then filter the list to those that you want to process.
    2) I need to compare the FTP Files with the local
    files before downloading from the FTP Server?Think about this one! To compare two files you nead to read both. If you do this on the client then you will have to copy the file from the server first!
    >
    3) I need to move files from the ftp server to local
    directory. Is there is anyway to move the files
    rather than first retrieve files from the FTP Server
    and then deleting the file in the FTP Server using
    FTP delete()What is wrong with copy then delete?

Maybe you are looking for

  • DataTable in a grid make flicker in the first dataload

    Hi experts, I have a form with a Grid, in this grid i have a datatable (with query). I open my form in create mode, if i click to the next button i have the following problem :                                    - when i open the form for the first t

  • Getting iTunes was not properly installed

    iTunes has been installed on my Windows XP box for several years.  I am running version 10.5.3.3. Just last week I started getting the message: iTunes was not properly installed..... I have re-installed but am still getting the message. Any ideas?

  • JRE problem in Linux

    I got this error:- $/jre/bin/java -Xmx32M -version Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Any suggestion to resolve this error?

  • Unexpected kernel mode error trap (Ndu.sys)

    I've been getting thus BSOD error "unexpected kernel mode trap (ndu.sys)" after installing visual studio 2013 when in connect to the internet and open the browser. If the browser is not opened then it runs just fine even if the internet is connected.

  • Standard LSMW to load Routing Long text

    We are migrating data to sap for Routings. We are using SAP best practices to load the data into sap using idocs. But we dont have idoc structure to load Long Text. Do you know a LSMW standard direct input to upload the routing long text. Please help