Skip to main content
edited tags
Link
Jeff Schaller
  • 68.9k
  • 35
  • 122
  • 268
formatting; title
Source Link
Gilles 'SO- stop being evil'
  • 866.5k
  • 205
  • 1.8k
  • 2.3k

Rename Remove a directory level from a website urlURL

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www/var/www. Because it a test server, I am accessing it via it's IP address  (64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applicationsapplications, to have a sub-domain name of applications.ourorganisation.orgapplications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing windowsWindows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.7864.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.phpindex.php file in 64.244.144.78/var/www64.244.144.78/var/www and used PHPPHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.orgapplications.ourorganisation.org, I am redirected to applications.ourcompany.org/applicationsapplications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications folder name at the end.

Any help, please It not a disaster but I would like to NOT have the ???applications directory name at the end.

Rename website url

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www. Because it a test server, I am accessing it via it's IP address(64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applications, to have a sub-domain name of applications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing windows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.php file in 64.244.144.78/var/www and used PHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.org, I am redirected to applications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications folder name at the end.

Any help, please ???

Remove a directory level from a website URL

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www. Because it a test server, I am accessing it via it's IP address  (64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applications, to have a sub-domain name of applications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing Windows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.php file in 64.244.144.78/var/www and used PHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.org, I am redirected to applications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications directory name at the end.

remove edits
Source Link
sisko
  • 341
  • 2
  • 4
  • 12

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www. Because it a test server, I am accessing it via it's IP address(64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applications, to have a sub-domain name of applications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing windows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.php file in 64.244.144.78/var/www and used PHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.org, I am redirected to applications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications folder name at the end.

Any help, please ???

In Addition:

<VirtualHost applications.ourorganisation.org:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/applications.ourorganisation.org
    ServerName firedragon
    ErrorLog /var/www/applications.ourorganisation.org/logs/error_log
    CustomLog /var/www/applications.ourorganisation.org/logs/access_log common
</VirtualHost>

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www. Because it a test server, I am accessing it via it's IP address(64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applications, to have a sub-domain name of applications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing windows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.php file in 64.244.144.78/var/www and used PHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.org, I am redirected to applications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications folder name at the end.

Any help, please ???

In Addition:

<VirtualHost applications.ourorganisation.org:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/applications.ourorganisation.org
    ServerName firedragon
    ErrorLog /var/www/applications.ourorganisation.org/logs/error_log
    CustomLog /var/www/applications.ourorganisation.org/logs/access_log common
</VirtualHost>

Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.

Let me describe the scenario ...

I have a test server with a number of websites in separate folders inside /var/www. Because it a test server, I am accessing it via it's IP address(64.244.144.78). So I would access a website via 64.244.144.78/a_website_folder

The trouble began when I needed one of the sites, which is called applications, to have a sub-domain name of applications.ourorganisation.org instead of using the IP Address format as above.

The sub-domain was created by our IT guy on our currently existing windows server. He then pointed the sub-domain at my Linux test server's IP address of 64.244.144.78 (apparently he could not add the subdirectory information leading to the applications website).

To counter this problem, I created an index.php file in 64.244.144.78/var/www and used PHP code to redirect to the applications website folder.

All that worked but I now when I visit applications.ourorganisation.org, I am redirected to applications.ourcompany.org/applications.

It not a disaster but I would like to NOT have the applications folder name at the end.

Any help, please ???

added new infornation
Source Link
sisko
  • 341
  • 2
  • 4
  • 12
Loading
Tweeted twitter.com/#!/StackUnix/status/190403841303392256
Source Link
sisko
  • 341
  • 2
  • 4
  • 12
Loading