Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Links problem

Featured Replies

Hi. i have a problem with links of my website since i've made changes to virtual host on apache conf file.

i've managed to make the www.mydomain.ro work but not all the links return this message :

 

Not Found

 

The requested URL /pages/Abonament.html was not found on this server.

Apache/2.0.59 (Win32) DAV/2 PHP/5.2.3 Server at www.mydomain.ro Port 80

 

httpd.conf -->

#MYDOMAIN

<VirtualHost *>

ServerName mydomain.ro

DocumentRoot /www/myfolder

</VirtualHost>

 

my website is in the myfolder folder.

 

Any way to solve this problem ?

Your Vhost looks OK if I type this into a browser:

 

http://mydomain.ro

 

I will see your index page (served from folder www/myfolder)

 

However if I type this into my browser:

http://www.mydomain.ro

 

There is no matching Vhost (ServerName) for www.mydomain.ro

Hence it cannot be found and Apache will server pages from the first site listed in the Vhost section. However that is not consistent with the error message!

 

Take a look at this page http://center.uniformserver.com/u35_mod_ss...nfig_httpd.html

At the bottom of this page you are interested in the new column it gives the structure how Vhost are layed out the :80 are not required for your implementation.

 

You can have more that one Vhost pointing to the same root folder for example:

 

ServerName mydomain.ro

DocumentRoot /www/myfolder

 

ServerName www.mydomain.ro

DocumentRoot /www/myfolder

 

Not sure if that helps

 

All the best

Ric

:lol:

  • Author

Thanks for your answer Ric. I've tried your solution but it doesn't work. maybe it's the cms script. it uses a mysql database and all the links and pages are saved to that database. when i'm working with localhost it works but when i change to mydomain.ro only the main paige works and the links to the pages show the error message i've posted earlier.

I think what may be required is an entry in your hosts file,

 

Open the file hosts located in folder:

 

C:\WINDOWS\system32\drivers\etc

 

Add a line similar to this

 

127.0.0.1 www.mydomain.ro

 

All the best

Ric :lol:

  • Author

Thanks again Rick. already tried it but still the same problem. still trying but i think i'm running out of ideas.

:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.