xampp - linking to directory not in root - apache

I have just installed xampp and would like to link to some dev websites on a separate(not c) drive.
Previously in IIS, I would add a virtual directory in the default website. How do I do the equivalent in xampp. Any pointers appreciated.

Have a look at VHosts, or mod_alias.

Related

WAMP localhost and phpmyadmin setup

I have inherited a WAMP setup, but needed my http://localhost to point to a different directory "C:/Users/[user.name]/htdocs" due to many dependencies.
I made the following changes in httpd.conf
DocumentRoot "C:/Users/[user.name]/htdocs"
<Directory "C:/Users/[user.name]/htdocs">
where the original path was "c:/wamp/www/"
Now the WAMP default path for phpMyAdmin http://localhost/phpMyAdmin is not working anymore.
Is it possible to fix that via either C:\wamp\alias\phpmyadmin.conf or httpd-vhosts.conf somehow?
Can I suggest a better solution to your requirement to have a site running that does not live in the WAMPServer default location i.e. \wamp\www or \wamp\www\somefolder
If you revert all your httpd.conf changes to the out of the box state and then create a Virtual Host to run the site you have located in your \user.... folder.
Virtual Hosts are a standard Apache feature that allows you to run may sites from a single instance of Apache, a bit like a shared hosting package setup.
You would then have the benefits of the WAMPServer homepage running on localhost and all the other alias's tools as well.
You can then run your site using a nice url for example sitename.dev and the virtual host definition also allows you to setup any site specific requirements without effecting any other site you may want to run.
There is a HowTo Setup Virtual Hosts here on SO

Setting up Programm-o locally

After reading the installation guide for program-o http://blog.program-o.com/documentation-v2/installation/ I was wondering how I would go about doing step 2 locally and installing it without hosting an online server?
Just put your code in htdocs directory (inside xampp instalation directory).
Then You will be able to execute your code by typing 'localhost' in your browser.
Or if you want to use other domain instead of localhost, You have to edit your hosts file.
In Windows7 hosts file is located in:
%systemroot%\system32\drivers\etc
My hosts file for example:
127.0.0.1 domain.com
I can access my code by typing for example 'domain.com' instead of 'localhost'

Where to put website files in Bitnami LAMP Ubuntu server

Wheres the default folder in Bitnami LAMP? The server is running but I dont know where to put my html files? I mean in comparison with XAMPP and WAMP, the default is you put it on xampp/htdocs/ or wamp/www/.
I've tried using the /opt/bitnami/apache2/htdocs/ and it works but I don't know if thats the default folder to put my website files in LAMP.
Yes, that is the default folder for your HTML or PHP files. You can also add applications on top of Bitnami LAMP and they will be installed at /opt/bitnami/apps/ folder.
HTML and php files, Bitnami on Google Cloud Platform server are in
/opt/bitnami/apache/htdocs
Config file httpd.conf in
/opt/bitnami/apache/conf
HTML and program files on my AWS Bitnami server are in:
/home/bitnami/apps/wordpress/htdocs
Config file httpd.conf it's in:
/opt/bitnami/apache/conf

Allow directory in subdomain but not the main domain

I am currently running Ubuntu Server with phpMyAdmin installed.
My question is ...
How do I deny access from domain.com/phpmyadmin but allow it on sub.domain.com/phpmyadmin?
Much thanks!
In my experience with Debian I set a soft link (ln) to the phpmyadmin dir that's not in the html directory. If you are using virtual domains on your install, then the example.domain.com should have a different DocumentRoot than domain.com. If you point both domains to the same DocumentRoot, then both will have access to the link to phpmyadmin.
Hope that reads as I thought it.

Hosting personal pages over a Redmine installation

I currently installed redmine on my server, and configured apache2 to run it in a virtualhost over mydomain.com
Thing is I also want to host some extra pages, at mydomain.com/personal, but since redmine is running the page is never found. How can I override this configuration to run both redmine and some personal pages?
You need the Alias directive to just create a virtual directory, which maps /public with some other real directory on the filesystem.