How to configure squid document root? - webserver

I looked up squid.conf, but I didn't find a tag to configure document root. Where is the default path? which tag is to configure.

I don't fully understand what do you want to do, as far as I know squid doesn't use a "document root" that name sounds more like an Apache configuration. Can you give more details on what do you want to do with squid? Or what is the Document Root that you look for?

Related

On Mac what is the best Data GUI for Meteor and MongoDB?

I have looked into a few different GUI's including Robomongo, but I can't seem to get it connected to my Meteor database. Can someone please tell me what the best GUI is to use and how to implement it? I can't seem to find any guides online.
To connect using umongo:
In your terminal, run the following (make sure you're in your project directory):
meteor mongo --url someappname.meteor.com
Note: This assumes your app is being hosted by meteor. If accessing a local db, leave off everything after --url
The output should look like this:
mongodb://client:1234-abcd-1234-abcd-1234567890#production-db-a1.meteor.io:27017/yourappname_meteor_com
In umongo, go to File > Connect and enter that string in the URI field. Hit Enter.
To view documents within a collection, navigate to that collection in the sidebar and highlight the collection you want to view.
To view all documents in that collection, click on Documents > Find. Leave all fields blank and hit OK.
I've found umongo decent for viewing large collections, but the Meteor URI expires quickly and umongo will start throwing errors.
NOTE: You'll likely only be able to view files for a minute or two, so while the above will get you connected, it may not be of much use for more than simply viewing your collections (why not use terminal at that point?). For that reason, I suspect imslavko's suggestion of using z-mongo-admin is going to be the way to go when/if the project matures.
If you need a UI to look at Mongo database contents there are couple of options.
If you want something Meteor specific, take a look at this atmosphere package: Houston Admin. It is a 3rd party package built by the community.
For more general solution take a look at genghis, ruby gem with nice UI.
I like mongohub on mac. Feels very mac :-)
Link here: github

URL Routing in Zend

So, I've just started using Zend, moving our companies internal CMS over onto the new Framework, and if you saw the existing code I'm sure you would soon agree the best way to to scrap the whole thing and start over.
So, thats exactly what I'm doing. It's relatively small, so as projects go it shouldn't take too long. Anyhow, to get to the point:
How exactly does routing work in Zend?
I have created a project, and two Modules, one called "default" and one called "admin". If you haven't guessed already I'd like the default module to be the front end of the site, and the admin module to be the backend of the site. When I navigate to ~/public/ I can see the "Welcome to Zend Framework" screen, but when I navigate to ~/public/admin I just get a 404.
What am I missing to get this working? Also, how do I map ~/ to ~/public/ where ~/ is the domain?
As a note, I made the modules and an Index controller within each using the zf tools on the command line using the following commands:
zf create Module default
zf create controller Index -m default
zf create Module admin
zf create controller Index -m admin
Thanks and advance for any help your able to give.
Dan.
'public' should not be in your URLs. Change your vhost so that the document root points at the public folder, not the application root folder, that will probably solve your problem. If not, make sure you have a .htaccess file which includes the mod_rewrite rules as explained in the manual, but if you used the command line tool to generate the project that part is probably fine.

TYPO3 does not resolve url correctly

I'm pretty new to TYPO3 and currently stuck with the following issue:
I copied the templates from another webpage that is currently in business.
When I'm on the startpage of my homepage (www.domain.com) and click on one of the links it contains I always get an error 404. The link that is generated looks like this.
http://www.domain.com/testpage.440.0.html
So I guess something like RealUrl was in use on the webpage that I copied from? Do I understand this right? I don't see that RealUrl is installed though.
However If i manually change this link to
http://www.domain.com/?id=440.0.html
the site is being created.
How does Typo3 know to generate a page when it receives the first version of these two links?
Does not really look like a standard out-of-the-box REAL URL url. That would rather have been /testpage-404.html . So maybe the problem is somewhere else, could be:
simulate static (check if that extension is running). A common mistake is to run real url an simulate static at the same time. If you do not need speaking urls for the moment, just uninstall simulate static.
make sure you add a domain to your shortcut. Use the the list modul and select the root shortcut. Then click create new record, select domain. and enter your domain there. Flush all the caches and try again.
If you'd post your TS Code (of the root shortcut page) here, I could probably tell what's going wrong.
real url configuration typically use .htaccess files.. maybe that file still contains information from the original destination.
check if the root ts contains some baseUrl statement
Which version of TYPO3 are you using?
HTH, but feel free to post more infos.
If your typoscript template is expecting to find realurl and its not installed as a plugin, that could be the cause. You'll need to either install it, or find the settings in the TS template and remove them.
Try the template object browser to look for it (use the template tool, click to the site root, then use the drop down menu in the r/h pane to choose the Template Obect Browser.)
How does Typo3 know to generate a page when
it receives the first version of these two links?
Any page request that it doesn't understand will give a 404 error.

How to use custome template in Joomla

I want to use my own template in Joomla 1.5.
But I don't know how I can do it.
Thanks in advance.
You can learn from here
http://www.phpeveryday.com/pack/Joomla-Template-Step-By-Step-Tutorial
The simplest way i think is to the templates subdirectory in Joomla!, duplicate one of the existing template subdirectories and give it a name my_template and then modify that. In the Joomla! admin you can select the new template and it will be applied.
If it all goes horribly wrong you can simply delete the directory and you will not have done any damage to the rest of the site.
One the Joomla! site there are a number of tutorials on how to do it you can work along with

How can one IIS6 .NET app appear as subsite of another?

SiteA.com and siteB.com are .NET 2.0 apps on IIS6. SiteA uses SSL.
Can I set things up so siteA.com/train gets people to siteB.com?
Are there multiple ways to do this? How would a good way be configured?
Go to MyComputer, right+mouse+click and chose Manage. Go to IIS/Websites and open up your sitename.com website.. navigate to the directory sitename.com/train. right+mouse+click on the train folder and chose "properties". Under the "directory" property click "create". I think that's what you're looking for.
You can't have a subdirectory of a site point to the root, and you can't have two site instances with the same domain name- the DNS record for www.sitename.com points to exactly one IP address. I think you'd be better off with something like http://train.sitename.com.
Actually you can have two site instances with the same domain, one could work with www.domain.com and the other to only work on domain.com. DNS can distinguish between the two.